-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (35 loc) · 922 Bytes
/
actionlint.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
34
35
36
37
38
39
40
name: actionlint
on:
pull_request:
jobs:
path-filter:
outputs:
workflows: ${{steps.changes.outputs.workflows}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
workflows:
- '.github/workflows/*'
status-check-actionlint:
runs-on: ubuntu-latest
needs:
- actionlint
permissions: {}
if: failure()
steps:
- run: exit 1
actionlint:
needs: path-filter
if: ${{ needs.path-filter.outputs.workflows == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: actionlint
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color
shell: bash