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 + +