From 2dc5b806da19b2399097947da8db12806fecf970 Mon Sep 17 00:00:00 2001 From: Philipp Kief Date: Thu, 16 Nov 2023 23:19:09 +0100 Subject: [PATCH] Update workflow --- .github/workflows/icon-review.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/icon-review.yml b/.github/workflows/icon-review.yml index c8316f4e38..23fd175861 100644 --- a/.github/workflows/icon-review.yml +++ b/.github/workflows/icon-review.yml @@ -17,10 +17,13 @@ jobs: with: fetch-depth: 0 + - name: Get changed files + id: changed-files + uses: jitterbit/get-changed-files@v1 + - name: Review SVG files 🔍 run: | - svgFiles=$(git diff origin/${{ env.TARGET_BRANCH }} --diff-filter=ACMRTUX --name-only | grep '.svg$') - echo "SVG files changed: ${svgFiles}" + svgFiles=$(echo ${{ steps.changed-files.outputs.modified_files }} | tr ' ' '\n' | grep 'icons/*.svg' | tr '\n' ' ') npx svg-icon-review ${svgFiles} - name: Install jq ⚙️