mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 09:54:36 +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
1 changed files with 8 additions and 5 deletions
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…
Add table
Add a link
Reference in a new issue