From 97156a8e7a98c0bb51ab11d5646c6fa169580541 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Tue, 21 May 2024 10:24:31 -0400 Subject: [PATCH] feat: add actions lint to pull request workflow (#8183) --- .github/workflows/lint-actions.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint-actions.yml diff --git a/.github/workflows/lint-actions.yml b/.github/workflows/lint-actions.yml new file mode 100644 index 000000000..d60885ad5 --- /dev/null +++ b/.github/workflows/lint-actions.yml @@ -0,0 +1,19 @@ +name: Lint GitHub Actions workflows +on: + pull_request: + merge_group: + push: + branches: [main] + +jobs: + actionlint: + 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: SHELLCHECK_OPTS="-S error" ${{ steps.get_actionlint.outputs.executable }} -color + shell: bash