Skip to content

Commit 077e80d

Browse files
committed
chore(CI): update icons pipeline
1 parent 95593f8 commit 077e80d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/icons.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242
git add -A ./packages/sprout-icons/svg/
4343
while read STATUS ADDR
4444
do
45-
icon=`basename $ADDR .svg`
46-
semver=`sed 's/A/minor/;s/D/minor/;s/M/patch/' <<< $STATUS`
47-
verb=`sed 's/A/added/;s/D/removed/;s/M/changed/' <<< $STATUS`
45+
icon=$(basename "$ADDR" .svg)
46+
semver=$(sed 's/A/minor/;s/D/minor/;s/M/patch/' <<< "$STATUS")
47+
verb=$(sed 's/A/added/;s/D/removed/;s/M/changed/' <<< "$STATUS")
4848
echo -e "---\n'@qlik/sprout-icons': $semver\n---\n\n$verb icon \`$icon\`" > .changeset/$icon-$semver.md
4949
done < <(git diff --cached --name-status HEAD -- 'packages/sprout-icons/svg/*.svg')
5050
git add .changeset
51-
body=$(git diff --name-only HEAD .changeset/*.md | xargs -L1 sed -n '5p')
51+
body=$(git diff --cached --name-only .changeset/*.md 2>/dev/null | xargs -r -L1 sed -n '5p' 2>/dev/null || true)
5252
{
5353
echo "body<<EOF"
5454
echo "$body"

packages/sprout-icons/svg/iconsfilledspark.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)