Lint GitHub Actions #9
Workflow file for this run
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 GitHub Actions | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| jobs: | |
| actionlint: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: rhysd/actionlint:latest | |
| options: --user root | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| sparse-checkout: .github | |
| - run: pwd | |
| - run: ls -la | |
| working-directory: .github | |
| - name: Check workflow files | |
| run: actionlint -color | |
| working-directory: .github # Repo name. |