forked from bnb-chain/reth
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 925 Bytes
/
lint-actions.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
name: Lint GitHub Actions workflows
on:
pull_request:
paths:
- '.github/**'
merge_group:
push:
paths:
- '.github/**'
jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build actionlint config for runner labels
shell: bash
run: |
cat > .github/actionlint.yaml<< EOF
self-hosted-runner:
# Labels of self-hosted runner in array of string
labels:
- bnb-chain-ap-qa-cicd-runners
EOF
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: SHELLCHECK_OPTS="-S error" ${{ steps.get_actionlint.outputs.executable }} -color -config-file .github/actionlint.yaml
shell: bash