-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (29 loc) · 1012 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Lint workflows
on:
pull_request:
branches: [main, master]
jobs:
lint:
name: Lint workflows
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
# https://github.com/reviewdog/action-actionlint
- name: Check workflow files
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
actionlint_flags: -color -shellcheck=
fail_on_error: true
level: info
# https://github.com/rhysd/actionlint/blob/main/docs/usage.md
- name: Check workflow files
env:
ACTIONLINT_VERSION: 1.6.27
run: |
echo "::add-matcher::.github/actionlint-matcher.json"
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color -shellcheck=
shell: bash