diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 0000000..55b6377 --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: Apache-2.0 + +name: Lint GitHub Actions workflows +on: + push: + branches: + - "main" + paths: + - '.github/**' + pull_request: + branches: + - "main" + paths: + - '.github/**' + +defaults: + run: + shell: bash + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Download actionlint + id: get_actionlint + run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.27 + - name: Check workflow files + run: PATH=".:$PATH" actionlint -color