ci: Fix workflows_linting.yml never running (#7941)

* Fix workflows_linting.yml never running

* Add setup-go step

* Ignore SC2102 rule
This commit is contained in:
Silvano Cerza 2024-06-28 11:01:52 +02:00 committed by GitHub
parent 5b9e989f9a
commit a86bf963a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ name: Github workflows linter
on:
pull_request:
paths:
- ".github/workflows"
- ".github/workflows/**"
jobs:
lint-workflows:
@ -12,8 +12,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Install actionlint
run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
- name: Run actionlint
env:
SHELLCHECK_OPTS: --exclude=SC2102
run: actionlint