workflow: Add actionlint workflows #1
Workflow file for this run
This file contains 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 GHA workflows | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- reopened | |
- synchronize | |
paths: | |
- '.github/workflows/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run-actionlint: | |
env: | |
GH_TOKEN: ${{ github.token }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install actionlint gh extension | |
run: gh extension install https://github.com/cschleiden/gh-actionlint | |
- name: Run actionlint | |
run: gh actionlint |