-
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.
feat: check github action syntax with actionlint
- Loading branch information
1 parent
4afe5ef
commit 23ff87f
Showing
2 changed files
with
22 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: lint | ||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/*.yml" | ||
|
||
jobs: | ||
actionlint: | ||
name: actionlint | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- name: Install Actionlint | ||
env: | ||
ACTIONLINT_VERSION: 1.6.3 | ||
run: | | ||
wget -q -O- "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz" | tar -x -z -C . actionlint && \ | ||
mv actionlint /usr/local/bin | ||
- name: Run Actionlint | ||
run: | | ||
actionlint -format '{{range $err := .}}::error file={{$err.Filepath}},line={{$err.Line}},col={{$err.Column}}::{{$err.Message}}{{end}}' -ignore 'SC2016:' .github/workflows/*.yml |
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