File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 63
63
.github/scripts/minify.sh
64
64
65
65
# 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/' )
68
68
echo "ORIG_SIZE=$ORIG_SIZE" >> $GITHUB_ENV
69
69
echo "MIN_SIZE=$MIN_SIZE" >> $GITHUB_ENV
70
70
92
92
- name : Report optimization results
93
93
run : |
94
94
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"
96
96
else
97
- COMMENT="✅ Package installed from cache."
97
+ COMMENT="[SUCCESS] Package installed from cache."
98
98
fi
99
99
gh issue comment ${{ github.event.issue.number }} --body "$COMMENT"
100
100
env :
You can’t perform that action at this time.
0 commit comments