diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index a1b92cc..4c34ec7 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -2,18 +2,24 @@ name: ShellCheck CI on: push: - branches: [ main, feature/* ] + branches: [ master, feature/* ] pull_request: - branches: [ main ] + branches: [ master ] jobs: shellcheck: runs-on: deploy + container: + image: koalaman/shellcheck-alpine:stable # imagem oficial do shellcheck + steps: - - uses: actions/checkout@v3 - + - name: Checkout + run: | + git clone http://10.11.10.71:3000/${{ gitea.repository }}.git . + git checkout ${{ gitea.sha }} + - name: Run ShellCheck - uses: ludeeus/action-shellcheck@master - with: - severity: warning - ignore_paths: logs + run: | + find . -name "*.sh" \ + -not -path "./logs/*" \ + -exec shellcheck --severity=warning {} + \ No newline at end of file