fix(ci): skip stable closeout without rollback vars

This commit is contained in:
Vincent Koc
2026-06-22 17:12:55 +08:00
parent d8e6ee04d0
commit cb301cd16f
3 changed files with 21 additions and 4 deletions

View File

@@ -244,6 +244,11 @@ jobs:
exit 1
fi
if [[ -z "$ROLLBACK_DRILL_ID" || -z "$ROLLBACK_DRILL_DATE" ]]; then
if [[ "$EVENT_NAME" == "push" ]]; then
echo "::warning::Stable closeout skipped: rollback drill repository variables are missing; manual dispatch remains required to complete closeout."
echo "should_closeout=false" >> "$GITHUB_OUTPUT"
exit 0
fi
echo "Stable closeout requires repository variables RELEASE_ROLLBACK_DRILL_ID and RELEASE_ROLLBACK_DRILL_DATE, or explicit manual overrides." >&2
exit 1
fi