Use actionlint on GitHub Actions workflows (#3953)
parent
717fbc45cb
commit
d89e51ac42
@ -0,0 +1,18 @@ |
||||
name: lint workflows |
||||
|
||||
on: |
||||
pull_request: |
||||
paths: |
||||
- '.github/**/*.ya?ml' |
||||
|
||||
jobs: |
||||
lint: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@v3 |
||||
- name: Add problem matchers |
||||
run: | |
||||
# https://github.com/rhysd/actionlint/blob/3a2f2c7/docs/usage.md#problem-matchers |
||||
curl -LO https://raw.githubusercontent.com/rhysd/actionlint/main/.github/actionlint-matcher.json |
||||
echo "::add-matcher::actionlint-matcher.json" |
||||
- uses: docker://rhysd/actionlint:latest |
Loading…
Reference in new issue