Skip to content

Commit 770dba1

Browse files
authored
Add an action to lint other workflow files (#82)
1 parent 366305c commit 770dba1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/lint-actions.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Lint GitHub Actions workflows
2+
on: [push, pull_request]
3+
4+
jobs:
5+
actionlint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: Download actionlint
10+
id: get_actionlint
11+
run: bash <(curl https://github.com/raw/rhysd/actionlint/main/scripts/download-actionlint.bash)
12+
shell: bash
13+
- name: Check workflow files
14+
run: ${{ steps.get_actionlint.outputs.executable }} -color
15+
shell: bash

0 commit comments

Comments
 (0)