diff --git a/.github/workflows/lint-workflows.yml b/.github/workflows/lint-workflows.yml new file mode 100644 index 00000000..12acb302 --- /dev/null +++ b/.github/workflows/lint-workflows.yml @@ -0,0 +1,25 @@ +name: Lint GitHub Actions workflows + +on: + push: + paths: + - '**.yml' + pull_request: + workflow_dispatch: + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up problem matchers for actionlint + run: | + curl -s -o actionlint-matcher.json https://raw.githubusercontent.com/rhysd/actionlint/main/.github/actionlint-matcher.json + echo "::add-matcher::$(pwd)/actionlint-matcher.json" + + - name: Run actionlint + uses: docker://rhysd/actionlint:latest + with: + args: -color -shellcheck=