forked from mapbox/tippecanoe
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 929 Bytes
/
yamllint.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
# DO NOT EDIT: BEGIN
# This snippet has been inserted automatically by mobsuccessbot, do not edit!
# If changes are needed, update the action yamllint in
# https://github.com/mobsuccess-devops/github-mobsuccess-policy
name: Validate-YAML
on:
merge_group:
types:
- checks_requested
push:
branches: [master, preprod, prod]
pull_request:
types: [opened, synchronize, reopened]
jobs:
validate-yaml:
name: Validate YAML files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate YAML files
run: |
if [ -f .yamllint.yml ]; then
yamllint -c .yamllint.yml .
elif [ -f .gitignore ]; then
yamllint -d "{extends: relaxed, ignore-from-file: [.gitignore], rules: {line-length: disable}}" .
else
yamllint -d "{extends: relaxed, rules: {line-length: disable}}" .
fi
# DO NOT EDIT: END