From 701725bbfb9d5fc1f4586e5f3ead3dc1a482a03b Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Fri, 30 Aug 2024 19:27:51 +0200 Subject: [PATCH] Deny PRs where shfmt doesn't pass --- .github/workflows/shfmt.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/shfmt.yml diff --git a/.github/workflows/shfmt.yml b/.github/workflows/shfmt.yml new file mode 100644 index 000000000..d1b8a4775 --- /dev/null +++ b/.github/workflows/shfmt.yml @@ -0,0 +1,14 @@ +name: shfmt +on: + pull_request: + paths: + - "helpers/**" + - "hooks/**" +jobs: + shfmt: + name: shfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: sudo apt install shfmt + - run: ./maintenance/shfmt.sh --diff