Update shellcheck.yml

Check only PR files, because massive (useless) breaks over all scripts
This commit is contained in:
CanbiZ 2025-01-01 13:13:19 +01:00 committed by GitHub
parent ac37d90403
commit a119a27b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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