Skip to content

Commit c34612b

Browse files
Add yaml linting
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent dd6a320 commit c34612b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/yaml-lint.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: yaml-lint
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
yaml-lint:
8+
name: 'yaml-lint'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: 'Yaml Lint'
13+
uses: karancode/yamllint-github-action@master
14+
with:
15+
yamllint_file_or_dir: 'configs'
16+
yamllint_strict: false
17+
yamllint_comment: true
18+
env:
19+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)