Skip to content

Commit

Permalink
Merge pull request #3 from max/actions-update
Browse files Browse the repository at this point in the history
Port to new Action configuration
  • Loading branch information
max authored Aug 19, 2019
2 parents 6916f75 + 12ed31b commit d89069d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
10 changes: 0 additions & 10 deletions Dockerfile
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/*
Expand Down
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
14 changes: 14 additions & 0 deletions action.yml
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 }}']

0 comments on commit d89069d

Please sign in to comment.