Skip to content

Lint with all workflows with actionlint #5

Lint with all workflows with actionlint

Lint with all workflows with actionlint #5

Workflow file for this run

name: Lint workflows
on:
pull_request:
branches: [main, master]
jobs:
lint:
name: Lint workflows
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
# https://github.com/reviewdog/action-actionlint
- name: Check workflow files
uses: reviewdog/action-actionlint@v1.43.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
actionlint_flags: -color -shellcheck=
fail_on_error: true
level: info
# https://github.com/rhysd/actionlint/blob/main/docs/usage.md
- name: Check workflow files
env:
ACTIONLINT_VERSION: 1.6.27
run: |
echo "::add-matcher::.github/actionlint-matcher.json"
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color -shellcheck=
shell: bash