From a34919f0af32c2f57531984478c6782eb16c679b Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Sat, 22 Jun 2024 22:19:43 +0200 Subject: [PATCH] fix: fixed check uniqueness of aliases action (#2242) --- .github/workflows/pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ec3bb52cc5..a204412783 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -3,7 +3,7 @@ name: Add Changed Icons comment on: pull_request_target: paths: - - 'icons/*.svg' + - 'icons/*' branches: - main - fix-icon-preview @@ -76,7 +76,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Check Uniqueness of Aliases - run: ! cat <(printf "%s\\n" icons/*.json | while read -r name; do basename "$name" .json; done) <(jq -cr 'select(.aliases) | .aliases[] | if type=="string" then . else .name end' icons/*.json) | sort | uniq -c | grep -ve '^ 1 ' + run: "! cat <(printf \"%s\\n\" icons/*.json | while read -r name; do basename \"$name\" .json; done) <(jq -cr 'select(.aliases) | .aliases[] | if type==\"string\" then . else .name end' icons/*.json) | sort | uniq -c | grep -ve '^\\s*1 '" generate-changed-icons-comment: runs-on: ubuntu-latest