diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 00000000..a1ceb5e2 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,22 @@ +name: Shellcheck + +on: + push: + branches: + - main + paths: + - 'scripts/**/*.sh' + pull_request: + paths: + - 'scripts/**/*.sh' + workflow_dispatch: + +jobs: + shellcheck: + name: Check shell scripts + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Run shellcheck + run: find scripts -name '*.sh' -type f -print0 | xargs -0 shellcheck --severity=warning