forked from awslabs/amazon-eks-irsa-cfn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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@v4 | ||
- 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 |