Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Nov 16, 2023
1 parent cdf7ac2 commit 2dc5b80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/icon-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ⚙️
Expand Down

0 comments on commit 2dc5b80

Please sign in to comment.