Skip to content

Commit ac31759

Browse files
authored
Lint GitHub Actions (#23)
1 parent 95ded22 commit ac31759

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/lint-action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Taken from https://github.com/rhysd/actionlint/blob/dc8cca81866af081bdd0e0653474916d7046c5c5/docs/usage.md#use-actionlint-on-github-actions
2+
# See also: https://github.com/rhysd/actionlint/issues/117#issuecomment-1132835368
3+
name: Lint GitHub Actions
4+
5+
on:
6+
pull_request:
7+
branches:
8+
- main
9+
push:
10+
branches:
11+
- main
12+
workflow_call:
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
actionlint:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v6
22+
with:
23+
sparse-checkout: .github
24+
25+
- name: Check workflow files
26+
uses: docker://rhysd/actionlint:latest
27+
with:
28+
args: -color

0 commit comments

Comments
 (0)