Skip to content

Commit 4817cd2

Browse files
committed
chore: add validate_workflows.yml
1 parent c0aedb6 commit 4817cd2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Validate Workflows
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/*.yml"
7+
- ".github/workflows/*.yaml"
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
validate:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Install actionlint
19+
run: |
20+
curl -sSfL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash | bash
21+
echo "$PWD" >> $GITHUB_PATH
22+
23+
- name: Lint GitHub Actions workflows
24+
run: actionlint -color

0 commit comments

Comments
 (0)