Skip to content

updated

updated #36

Workflow file for this run

name: Lint Workflows
# Validates GitHub Actions workflow syntax, ${{ }} expressions, job needs and
# triggers. shellcheck/pyflakes are intentionally disabled so large legacy
# run-blocks don't fail CI on style warnings.
on:
push:
paths:
- ".github/workflows/**"
- "action.yml"
pull_request:
paths:
- ".github/workflows/**"
- "action.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: actionlint (core checks only)
run: |
set -euo pipefail
bash <(curl -sSL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color -shellcheck= -pyflakes=
- name: yamllint (relaxed)
run: |
set -euo pipefail
python3 -m pip install --quiet yamllint
yamllint -c .github/.yamllint.yml .github/workflows/ action.yml