From 09627bbb6f2fb3e54a2e7f069b986d5dbb41b511 Mon Sep 17 00:00:00 2001 From: Guryash <100251580+gmat224@users.noreply.github.com> Date: Sat, 8 Jun 2024 17:09:55 +1200 Subject: [PATCH] Add files via upload --- .github/workflows/actionlint.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/actionlint.yaml diff --git a/.github/workflows/actionlint.yaml b/.github/workflows/actionlint.yaml new file mode 100644 index 00000000..22b07e4e --- /dev/null +++ b/.github/workflows/actionlint.yaml @@ -0,0 +1,30 @@ +name: actionlint + +on: + push: + branches: [main] + paths: [".github/workflows/**"] + pull_request: + paths: [".github/workflows/**"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + +jobs: + format_and_lint: + name: "Lint GitHub Actions workflows" + timeout-minutes: 10 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Download actionlint + id: get_actionlint + run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + shell: bash + + - name: Check workflow files + run: ${{ steps.get_actionlint.outputs.executable }} -color + shell: bash