Skip to content

Commit bf49130

Browse files
committed
Run actionlint on workflow file
1 parent 5af714f commit bf49130

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/actionlint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: actionlint
2+
3+
on:
4+
push:
5+
merge_group:
6+
pull_request:
7+
8+
jobs:
9+
actionlint:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 5
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v5
15+
# Taken from https://github.com/rhysd/actionlint/blob/v1.7.7/docs/usage.md#use-actionlint-on-github-actions
16+
- name: Download actionlint
17+
id: get_actionlint
18+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
19+
shell: bash
20+
- name: Check workflow files
21+
run: |
22+
for file in $(git ls-files .github/workflows/*)
23+
do
24+
echo "Checking $file"
25+
${{ steps.get_actionlint.outputs.executable }} -color $file || exit 1
26+
done
27+
shell: bash

0 commit comments

Comments
 (0)