We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 279f341 commit 8b21dfeCopy full SHA for 8b21dfe
.github/workflows/main.yml
@@ -295,8 +295,12 @@ jobs:
295
echo "📦 $artifact: $OLD_SIZE → $NEW_SIZE bytes (${INCREASE}% change)"
296
# Check if increase is more than 5%
297
if (( $(echo "$INCREASE > 5" | bc -l) )); then
298
- echo "❌ ERROR: $artifact size increased by ${INCREASE}% (limit: 5%)"
299
- FAILED=1
+ if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
+ echo "⚠️ WARNING: $artifact size increased by ${INCREASE}% (limit: 5%)"
300
+ else
301
+ echo "❌ ERROR: $artifact size increased by ${INCREASE}% (limit: 5%)"
302
+ FAILED=1
303
+ fi
304
fi
305
done
306
if [ $FAILED -eq 1 ]; then
0 commit comments