Atualizar .github/workflows/shellcheck.yml
This commit is contained in:
@@ -2,18 +2,24 @@ name: ShellCheck CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, feature/* ]
|
branches: [ master, feature/* ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: deploy
|
runs-on: deploy
|
||||||
|
container:
|
||||||
|
image: koalaman/shellcheck-alpine:stable # imagem oficial do shellcheck
|
||||||
|
|
||||||
steps:
|
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
|
- name: Run ShellCheck
|
||||||
uses: ludeeus/action-shellcheck@master
|
run: |
|
||||||
with:
|
find . -name "*.sh" \
|
||||||
severity: warning
|
-not -path "./logs/*" \
|
||||||
ignore_paths: logs
|
-exec shellcheck --severity=warning {} +
|
||||||
Reference in New Issue
Block a user