Skip to content

Commit 93ec933

Browse files
refactor: Update notification email subjects for clarity on deployment status
1 parent a87cd5c commit 93ec933

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/job-send-notification.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
EMAIL_BODY=$(cat <<EOF
9999
{
100100
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${ACCELERATOR_NAME} deployment has failed due to insufficient quota.</p><p><strong>Status Summary:</strong><br><table border='1' cellpadding='5' cellspacing='0'><tr><th>Stage</th><th>Status</th></tr><tr><td>Deployment</td><td>❌ FAILED (Insufficient Quota)</td></tr><tr><td>Cleanup</td><td>${CLEANUP_STATUS}</td></tr></table></p><p><strong>Issue Details:</strong><br>• Quota check failed for GPT model<br>• Required GPT Capacity: ${{ env.GPT_MIN_CAPACITY }}<br>• Checked Regions: ${{ vars.AZURE_REGIONS }}</p><p><strong>Configuration:</strong> ${CONFIG_LABEL}</p><p><strong>Run URL:</strong> <a href='${RUN_URL}'>${RUN_URL}</a></p><p>Please resolve the quota issue and retry the deployment.</p><p>Best regards,<br>Your Automation Team</p>",
101-
"subject": "[CI/CD-Automation] [${ACCELERATOR_NAME}]"
101+
"subject": "[CI/CD-Automation] [${ACCELERATOR_NAME}] Insufficient Quota"
102102
}
103103
EOF
104104
)
@@ -123,7 +123,7 @@ jobs:
123123
EMAIL_BODY=$(cat <<EOF
124124
{
125125
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${ACCELERATOR_NAME} deployment has failed.</p><p><strong>Status Summary:</strong><br><table border='1' cellpadding='5' cellspacing='0'><tr><th>Stage</th><th>Status</th></tr><tr><td>Deployment</td><td>❌ FAILED (Deployment Issue)</td></tr><tr><td>Cleanup</td><td>${CLEANUP_STATUS}</td></tr></table></p><p><strong>Deployment Details:</strong><br>• Resource Group: ${RESOURCE_GROUP}</p><p><strong>Configuration:</strong> ${CONFIG_LABEL}</p><p><strong>Run URL:</strong> <a href='${RUN_URL}'>${RUN_URL}</a></p><p>Please investigate the deployment failure at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>",
126-
"subject": "[CI/CD-Automation] [${ACCELERATOR_NAME}]"
126+
"subject": "[CI/CD-Automation] [${ACCELERATOR_NAME}] Deployment-Failed"
127127
}
128128
EOF
129129
)
@@ -153,7 +153,7 @@ jobs:
153153
EMAIL_BODY=$(cat <<EOF
154154
{
155155
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${ACCELERATOR_NAME} deployment has completed successfully.</p><p><strong>Status Summary:</strong><br><table border='1' cellpadding='5' cellspacing='0'><tr><th>Stage</th><th>Status</th></tr><tr><td>Deployment</td><td>✅ SUCCESS</td></tr><tr><td>Cleanup</td><td>${CLEANUP_STATUS}</td></tr></table></p><p><strong>Deployment Details:</strong><br>• Resource Group: ${RESOURCE_GROUP}<br>• Web App URL: <a href='${WEBAPP_URL}'>${WEBAPP_URL}</a></p><p><strong>Configuration:</strong> ${CONFIG_LABEL}</p><p><strong>Run URL:</strong> <a href='${RUN_URL}'>${RUN_URL}</a></p><p>Best regards,<br>Your Automation Team</p>",
156-
"subject": "[CI/CD-Automation] [${ACCELERATOR_NAME}]"
156+
"subject": "[CI/CD-Automation] [${ACCELERATOR_NAME}] Success"
157157
}
158158
EOF
159159
)

0 commit comments

Comments
 (0)