From 255d45baa1071d6cbc70ce12f5352953b4a596ec Mon Sep 17 00:00:00 2001 From: JP Lomas Date: Sat, 3 Aug 2024 22:00:53 +0100 Subject: [PATCH] Add workflow to lint workflows with Actionlint --- .github/workflows/actionlint.yml | 17 +++++++++++++++++ 1 file changed, 17 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..ff07663b8 --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,17 @@ +name: Lint GitHub workflows + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 + + - name: Install Actionlint + run: | + curl -sSL https://github.com/rhysd/actionlint/releases/download/v1.7.1/actionlint_1.7.1_linux_amd64.tar.gz | tar -xz -C /usr/local/bin + + - name: Run Actionlint + run: actionlint