From a119a27b4f969d192dfcb66b4b0e034bf38e1a99 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 1 Jan 2025 13:13:19 +0100 Subject: [PATCH] Update shellcheck.yml Check only PR files, because massive (useless) breaks over all scripts --- .github/workflows/shellcheck.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 842ebabd5..a01a978d3 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -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