diff --git a/.github/workflows/icon-review.yml b/.github/workflows/icon-review.yml index 23fd175861..91f3385398 100644 --- a/.github/workflows/icon-review.yml +++ b/.github/workflows/icon-review.yml @@ -17,13 +17,11 @@ jobs: with: fetch-depth: 0 - - name: Get changed files - id: changed-files - uses: jitterbit/get-changed-files@v1 - - name: Review SVG files 🔍 run: | - svgFiles=$(echo ${{ steps.changed-files.outputs.modified_files }} | tr ' ' '\n' | grep 'icons/*.svg' | tr '\n' ' ') + echo "Target branch: ${{ github.event.pull_request }}" + svgFiles=$(git diff origin/${{ env.TARGET_BRANCH }} --diff-filter=ACMRTUX --name-only | grep '.svg$') + echo "SVG files changed: ${svgFiles}" npx svg-icon-review ${svgFiles} - name: Install jq ⚙️