Skip to content

Commit 9c7f490

Browse files
committed
Remove Unicode Characters & Use Consistent Sizes
1 parent 4e9241a commit 9c7f490

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/minify.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
.github/scripts/minify.sh
6464
6565
# Log original and minified sizes
66-
ORIG_SIZE=$(du -h ./${{ env.PACKAGE }}_${{ env.VERSION }}.tar.gz | cut -f1)
67-
MIN_SIZE=$(du -h ./${{ env.PACKAGE }}_${{ env.VERSION }}_minified.tar.gz | cut -f1)
66+
ORIG_SIZE=$(du -h ./${{ env.PACKAGE }}_${{ env.VERSION }}.tar.gz | cut -f1 | sed 's/M$/MB/; s/K$/KB/')
67+
MIN_SIZE=$(du -h ./${{ env.PACKAGE }}_${{ env.VERSION }}_minified.tar.gz | cut -f1 | sed 's/M$/MB/; s/K$/KB/')
6868
echo "ORIG_SIZE=$ORIG_SIZE" >> $GITHUB_ENV
6969
echo "MIN_SIZE=$MIN_SIZE" >> $GITHUB_ENV
7070
@@ -92,9 +92,9 @@ jobs:
9292
- name: Report optimization results
9393
run: |
9494
if [[ -n "$ORIG_SIZE" ]]; then
95-
COMMENT=" Package optimized successfully!<br>Original size: $ORIG_SIZE<br>Optimized size: $MIN_SIZE<br>Time taken: $DURATION seconds<br>Disk space used: $DISK_SPACE"
95+
COMMENT="[SUCCESS] Package optimized successfully!<br>Original size: $ORIG_SIZE<br>Optimized size: $MIN_SIZE<br>Time taken: $DURATION seconds<br>Disk space used: $DISK_SPACE"
9696
else
97-
COMMENT=" Package installed from cache."
97+
COMMENT="[SUCCESS] Package installed from cache."
9898
fi
9999
gh issue comment ${{ github.event.issue.number }} --body "$COMMENT"
100100
env:

0 commit comments

Comments
 (0)