File tree Expand file tree Collapse file tree 3 files changed +625
-45
lines changed
Expand file tree Collapse file tree 3 files changed +625
-45
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,30 @@ name: Lint GitHub Actions workflows
22on :
33 pull_request :
44 paths :
5- - ' .github/**'
5+ - ' .github/**'
66 merge_group :
77 push :
88 paths :
9- - ' .github/**'
9+ - ' .github/**'
1010
1111jobs :
1212 actionlint :
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v4
16+ - name : build actionlint config for runner labels
17+ shell : bash
18+ run : |
19+ cat > .github/actionlint.yaml<< EOF
20+ self-hosted-runner:
21+ # Labels of self-hosted runner in array of string
22+ labels:
23+ - bnb-chain-ap-qa-cicd-runners
24+ EOF
1625 - name : Download actionlint
1726 id : get_actionlint
1827 run : bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
1928 shell : bash
2029 - name : Check workflow files
2130 run : SHELLCHECK_OPTS="-S error" ${{ steps.get_actionlint.outputs.executable }} -color
22- shell : bash
31+ shell : bash
You can’t perform that action at this time.
0 commit comments