Skip to content

Commit 7f5bbb8

Browse files
committed
Run yamllint on each PR run and main merge fix #39
1 parent 8a3d300 commit 7f5bbb8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pr-lint.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Validate YAML Configs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
validate-yaml:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v3
16+
17+
- name: Install yamllint
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y yamllint
21+
22+
- name: Validate All YAML Files
23+
run: |
24+
find . -name "*.yaml" -o -name "*.yml" -exec yamllint {} \;

0 commit comments

Comments
 (0)