Add PRODUCTION alert for main branch CI failures
When CI fails on main, notification escalates to 🚨 with
"PRODUCTION CI FAILED" header and instructions to verify
tsharps.com is still working.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8cf2b6c1cb
commit
6d31b9bf2e
20
ci-notify.sh
20
ci-notify.sh
@ -35,7 +35,24 @@ ${SUITE_INFO}
|
||||
|
||||
elif [ "$STATUS" = "fail" ]; then
|
||||
ICON="❌"
|
||||
MSG="${ICON} CI FAILED on ${BRANCH} (${COMMIT})
|
||||
if [ "$BRANCH" = "main" ]; then
|
||||
ICON="🚨"
|
||||
MSG="${ICON} PRODUCTION CI FAILED on main (${COMMIT})
|
||||
|
||||
⚠️ PRODUCTION DEPLOY SHOULD BE BLOCKED — tests did not pass.
|
||||
If deploy-production.yml ran, it should have reverted automatically.
|
||||
Verify tsharps.com is still working!
|
||||
|
||||
Tests: ${SUMMARY}
|
||||
Features: ${FEATURES}
|
||||
Duration: ${DURATION}
|
||||
Pushed by: ${ACTOR}
|
||||
${SUITE_INFO}
|
||||
|
||||
${TAG_USERS} — PRODUCTION needs immediate attention.
|
||||
@TSHARPSbm_bot"
|
||||
else
|
||||
MSG="${ICON} CI FAILED on ${BRANCH} (${COMMIT})
|
||||
|
||||
Tests: ${SUMMARY}
|
||||
Features: ${FEATURES}
|
||||
@ -45,6 +62,7 @@ ${SUITE_INFO}
|
||||
|
||||
${TAG_USERS} — this build needs attention.
|
||||
@TSHARPSbm_bot"
|
||||
fi
|
||||
|
||||
elif [ "$STATUS" = "error" ]; then
|
||||
ICON="🚨"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user