Skip to content

Commit 2cf48de

Browse files
committed
fix(ci): skip artifact size check failure on manual workflow runs
1 parent c8d3360 commit 2cf48de

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,12 @@ jobs:
558558
echo "📦 $artifact: $OLD_SIZE → $NEW_SIZE bytes (${INCREASE}% change)"
559559
# Check if increase is more than 5%
560560
if (( $(echo "$INCREASE > 5" | bc -l) )); then
561-
echo "❌ ERROR: $artifact size increased by ${INCREASE}% (limit: 5%)"
562-
FAILED=1
561+
if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
562+
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
563567
fi
564568
done
565569
if [ $FAILED -eq 1 ]; then

0 commit comments

Comments
 (0)