Skip to content

Commit daf1bdf

Browse files
willingclwasser
authored andcommitted
Add a linter for GitHub actions
1 parent d9d34a6 commit daf1bdf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/main.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Used to lint GitHub actions. https://github.com/rhysd/actionlint
2+
name: Actionlint
3+
4+
on:
5+
pull_request:
6+
paths:
7+
- '.github/**'
8+
9+
jobs:
10+
actionlint:
11+
name: Action lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Check workflow files
16+
run: |
17+
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
18+
./actionlint -color -ignore SC2129
19+
shell: bash

0 commit comments

Comments
 (0)