From 97b5011f671b6e18f16a1e01f9ced491f3775f37 Mon Sep 17 00:00:00 2001 From: Carlos Matos Date: Thu, 21 Dec 2023 14:54:36 -0500 Subject: [PATCH] chore: add workflow for shell formatting --- .github/workflows/shell_format.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/shell_format.yml diff --git a/.github/workflows/shell_format.yml b/.github/workflows/shell_format.yml new file mode 100644 index 0000000..3084f10 --- /dev/null +++ b/.github/workflows/shell_format.yml @@ -0,0 +1,23 @@ +on: + push: + paths: + - 'bash/**' + - '.github/workflows/shell_format.yml' + + pull_request: + paths: + - 'bash/**' + - '.github/workflows/shell_format.yml' + +jobs: + shfmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run shfmt with reviewdog + uses: reviewdog/action-shfmt@v1.0.2 + with: + workdir: ./bash + shfmt_flags: -i 4 -ci + +