From a64db2e8023b39075fb50cc2ce5f00da17bbe089 Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Sat, 23 Sep 2023 12:18:47 +0200 Subject: [PATCH] infra: add github actions linter Taken from the main checkstyle repository. --- .github/workflows/actionlint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/actionlint.yml diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 000000000..affa8ae1a --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,26 @@ +name: Lint workflows of GitHub Actions +on: + push: + branches: + - master + paths: + - '.github/workflows/**' + pull_request: + branches: + - '*' + paths: + - '.github/workflows/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Check workflow files + uses: docker://rhysd/actionlint:latest