feat: add actions lint to pull request workflow (#8183)

This commit is contained in:
Dan Cline
2024-05-21 10:24:31 -04:00
committed by GitHub
parent 106d449307
commit 97156a8e7a

19
.github/workflows/lint-actions.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Lint GitHub Actions workflows
on:
pull_request:
merge_group:
push:
branches: [main]
jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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
shell: bash