mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add actions lint to pull request workflow (#8183)
This commit is contained in:
19
.github/workflows/lint-actions.yml
vendored
Normal file
19
.github/workflows/lint-actions.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user