From fef324e9c0c7a8a6416ff151057be57d15fed7f6 Mon Sep 17 00:00:00 2001 From: Philipp Bammes <8144115+tyrann0us@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:03:51 +0200 Subject: [PATCH] feat: add actionlint workflow Signed-off-by: Philipp Bammes <8144115+tyrann0us@users.noreply.github.com> --- .github/workflows/lint-workflows.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/lint-workflows.yml 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=