Skip to content

Commit d89069d

Browse files
authored
Merge pull request #3 from max/actions-update
Port to new Action configuration
2 parents 6916f75 + 12ed31b commit d89069d

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

Dockerfile

-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
FROM node:10-alpine
22

3-
LABEL version="1.0.0"
4-
LABEL repository="http://github.com/max/awesome-lint"
5-
LABEL homepage="http://github.com/max/awesome-lint"
6-
LABEL maintainer="Max Schoening <[email protected]>"
7-
8-
LABEL "com.github.actions.name"="GitHub Action for awesome-lint"
9-
LABEL "com.github.actions.description"="Wraps the awesome-lint tool to check awesome lists"
10-
LABEL "com.github.actions.icon"="play"
11-
LABEL "com.github.actions.color"="purple"
12-
133
RUN apk add --no-cache \
144
git \
155
&& rm -rf /var/cache/apk/*

README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ keep them consistent.
77

88
## Example
99

10-
```
11-
workflow "Lint Awesome List" {
12-
on = "push"
13-
resolves = ["max/awesome-lint"]
14-
}
15-
16-
action "max/awesome-lint" {
17-
uses = "max/awesome-lint@master"
18-
}
10+
```yaml
11+
steps:
12+
- uses: actions/[email protected]
13+
- uses: max/[email protected]
14+
with:
15+
filename: README.md # optional
1916
```

action.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Awesome Lint'
2+
description: 'GitHub Action for awesome-lint'
3+
author: 'Max Schoening <[email protected]>'
4+
branding:
5+
icon: 'play'
6+
color: 'purple'
7+
inputs:
8+
filename:
9+
description: 'Filename to lint'
10+
required: false
11+
runs:
12+
using: 'docker'
13+
image: 'Dockerfile'
14+
args: ['${{ inputs.filename }}']

0 commit comments

Comments
 (0)