-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (35 loc) · 1.19 KB
/
yaml-linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: Yaml Linter
on:
workflow_dispatch:
push:
pull_request:
jobs:
yamllint:
name: Yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Workflows
uses: karancode/yamllint-github-action@v2.1.1
with:
yamllint_config_filepath: .yamllint.yml
yamllint_file_or_dir: .github/workflows
yamllint_comment: 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint GitHub config yamls
uses: karancode/yamllint-github-action@v2.1.1
with:
yamllint_config_filepath: .yamllint.yml
yamllint_file_or_dir: .github
yamllint_comment: 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint yaml files in root dir
uses: karancode/yamllint-github-action@v2.1.1
with:
yamllint_config_filepath: .yamllint.yml
yamllint_comment: 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}