updated #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |