From cae011dd0e10ac5d8c66f1ec429f35955488d860 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Mon, 25 Nov 2024 23:01:10 -0500 Subject: [PATCH] ci: Reuse workflow for shell --- .github/workflows/shell.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/shell.yml b/.github/workflows/shell.yml index fe96765..dfdb0ac 100644 --- a/.github/workflows/shell.yml +++ b/.github/workflows/shell.yml @@ -1,14 +1,5 @@ name: Lint Shell on: [push, pull_request] jobs: - build: - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: | - sudo apt update - sudo apt install devscripts shellcheck shfmt - - run: checkbashisms $(shfmt -f .) - - run: shellcheck $(shfmt -f .) - - run: shfmt -d -i 4 -sr $(shfmt -f .) + lint: + uses: open-contracting/.github/.github/workflows/shell.yml@main