Skip to content

Commit 4f2a310

Browse files
committed
Lint GitHub Actions
1 parent 95ded22 commit 4f2a310

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/lint-action.yml

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

0 commit comments

Comments
 (0)