We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8d3360 commit 2cf48deCopy full SHA for 2cf48de
1 file changed
.github/workflows/main.yml
@@ -558,8 +558,12 @@ jobs:
558
echo "📦 $artifact: $OLD_SIZE → $NEW_SIZE bytes (${INCREASE}% change)"
559
# Check if increase is more than 5%
560
if (( $(echo "$INCREASE > 5" | bc -l) )); then
561
- echo "❌ ERROR: $artifact size increased by ${INCREASE}% (limit: 5%)"
562
- FAILED=1
+ if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
+ echo "⚠️ WARNING: $artifact size increased by ${INCREASE}% (limit: 5%)"
563
+ else
564
+ echo "❌ ERROR: $artifact size increased by ${INCREASE}% (limit: 5%)"
565
+ FAILED=1
566
+ fi
567
fi
568
done
569
if [ $FAILED -eq 1 ]; then
0 commit comments