diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..c6e3e41 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,28 @@ +name: ShellCheck + +on: + push: + branches: [main] + paths: + - 'bin/**/*.sh' + - '.github/workflows/shellcheck.yml' + pull_request: + branches: [main] + paths: + - 'bin/**/*.sh' + - '.github/workflows/shellcheck.yml' + +jobs: + shellcheck: + name: Lint Shell Scripts + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + with: + scandir: './bin' + severity: style