-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from max/actions-update
Port to new Action configuration
- Loading branch information
Showing
3 changed files
with
20 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
FROM node:10-alpine | ||
|
||
LABEL version="1.0.0" | ||
LABEL repository="http://github.com/max/awesome-lint" | ||
LABEL homepage="http://github.com/max/awesome-lint" | ||
LABEL maintainer="Max Schoening <[email protected]>" | ||
|
||
LABEL "com.github.actions.name"="GitHub Action for awesome-lint" | ||
LABEL "com.github.actions.description"="Wraps the awesome-lint tool to check awesome lists" | ||
LABEL "com.github.actions.icon"="play" | ||
LABEL "com.github.actions.color"="purple" | ||
|
||
RUN apk add --no-cache \ | ||
git \ | ||
&& rm -rf /var/cache/apk/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,10 @@ keep them consistent. | |
|
||
## Example | ||
|
||
``` | ||
workflow "Lint Awesome List" { | ||
on = "push" | ||
resolves = ["max/awesome-lint"] | ||
} | ||
action "max/awesome-lint" { | ||
uses = "max/awesome-lint@master" | ||
} | ||
```yaml | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: max/[email protected] | ||
with: | ||
filename: README.md # optional | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: 'Awesome Lint' | ||
description: 'GitHub Action for awesome-lint' | ||
author: 'Max Schoening <[email protected]>' | ||
branding: | ||
icon: 'play' | ||
color: 'purple' | ||
inputs: | ||
filename: | ||
description: 'Filename to lint' | ||
required: false | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: ['${{ inputs.filename }}'] |