Skip to content

Commit df3b7ba

Browse files
committed
feat(github-action): add actionlint to lint against gha yamls
1 parent 491cd45 commit df3b7ba

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/lint.yml

+13
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: trunk-io/trunk-action@v1
21+
2122
conventional-commit-title-check:
2223
runs-on: ubuntu-latest
2324
permissions:
@@ -28,3 +29,15 @@ jobs:
2829
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2930
with:
3031
requireScope: true
32+
33+
action-lint:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Download actionlint
38+
id: get_actionlint
39+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
40+
shell: bash
41+
- name: Check workflow files
42+
run: ${{ steps.get_actionlint.outputs.executable }} -color
43+
shell: bash

0 commit comments

Comments
 (0)