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
18
ci-notify.sh
18
ci-notify.sh
@ -35,6 +35,23 @@ ${SUITE_INFO}
|
|||||||
|
|
||||||
elif [ "$STATUS" = "fail" ]; then
|
elif [ "$STATUS" = "fail" ]; then
|
||||||
ICON="❌"
|
ICON="❌"
|
||||||
|
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})
|
MSG="${ICON} CI FAILED on ${BRANCH} (${COMMIT})
|
||||||
|
|
||||||
Tests: ${SUMMARY}
|
Tests: ${SUMMARY}
|
||||||
@ -45,6 +62,7 @@ ${SUITE_INFO}
|
|||||||
|
|
||||||
${TAG_USERS} — this build needs attention.
|
${TAG_USERS} — this build needs attention.
|
||||||
@TSHARPSbm_bot"
|
@TSHARPSbm_bot"
|
||||||
|
fi
|
||||||
|
|
||||||
elif [ "$STATUS" = "error" ]; then
|
elif [ "$STATUS" = "error" ]; then
|
||||||
ICON="🚨"
|
ICON="🚨"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user