mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Update shellcheck.yml
Check only PR files, because massive (useless) breaks over all scripts
This commit is contained in:
parent
ac37d90403
commit
a119a27b4f
13
.github/workflows/shellcheck.yml
vendored
13
.github/workflows/shellcheck.yml
vendored
@ -17,9 +17,12 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Get changed files
|
||||
id: changes
|
||||
run: |
|
||||
echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '\.sh$')"
|
||||
|
||||
- name: Run ShellCheck
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
with:
|
||||
ignore_paths: >-
|
||||
frontend
|
||||
json
|
||||
if: steps.changes.outputs.files != ''
|
||||
run: |
|
||||
echo "${{ steps.changes.outputs.files }}" | xargs shellcheck
|
||||
|
Loading…
Reference in New Issue
Block a user