diff --git a/ci-notify.sh b/ci-notify.sh index dffff4d..96ee352 100755 --- a/ci-notify.sh +++ b/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="🚨"