File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ # DO NOT EDIT: BEGIN
2+ # This snippet has been inserted automatically by mobsuccessbot, do not edit!
3+ # If changes are needed, update the action yamllint in
4+ # https://github.com/mobsuccess-devops/github-mobsuccess-policy
5+ name : Validate-YAML
6+
7+ on :
8+ merge_group :
9+ types :
10+ - checks_requested
11+ push :
12+ branches : [master, preprod, prod]
13+ pull_request :
14+ types : [opened, synchronize, reopened]
15+
16+ jobs :
17+ validate-yaml :
18+ name : Validate YAML files
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Validate YAML files
23+ run : |
24+ if [ -f .yamllint.yml ]; then
25+ yamllint -c .yamllint.yml .
26+ elif [ -f .gitignore ]; then
27+ yamllint -d "{extends: relaxed, ignore-from-file: [.gitignore], rules: {line-length: disable}}" .
28+ else
29+ yamllint -d "{extends: relaxed, rules: {line-length: disable}}" .
30+ fi
31+
32+ notify :
33+ needs : [validate-yaml]
34+ if : failure()
35+ runs-on : ubuntu-20.04
36+ steps :
37+ - name : Notify
38+ uses : mobsuccess-devops/github-actions-notify@master
39+ with :
40+ notify-type : " workflow-failure"
41+ slack-token : ${{ secrets.SLACK_TOKEN_MSBOT }}
42+ slack-channel : ${{ vars.SLACK_CHANNEL_NOTIFY_WORKFLOW_FAIL }}
43+ platform-pat : ${{ secrets.MS_PLATFORM_LIST_USERS_PAT }}
44+ # DO NOT EDIT: END
You can’t perform that action at this time.
0 commit comments