Skip to content

Commit 2af9c2b

Browse files
Update email notification body to include hyperlinks for Run URL and Test Report
1 parent 4fb8b8d commit 2af9c2b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/gp-test-automation.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ on:
55
branches:
66
- main
77
- dev
8-
- migrate-test-automation
9-
# paths:
10-
# - 'DKM/**'
8+
paths:
9+
- 'TestAutomation/**'
1110
schedule:
1211
- cron: '0 13 * * *' # Runs at 1 PM UTC
1312
workflow_dispatch:
@@ -100,15 +99,15 @@ jobs:
10099
if [ "$IS_SUCCESS" = "true" ]; then
101100
EMAIL_BODY=$(cat <<EOF
102101
{
103-
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${{ env.accelerator_name }} Test Automation process has completed successfully.</p><p><strong>Run URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p><strong>Test Report:</strong> ${REPORT_URL}</p><p>Best regards,<br>Your Automation Team</p>",
102+
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${{ env.accelerator_name }} Test Automation process has completed successfully.</p><p><strong>Run URL:</strong> <a href="${RUN_URL}">${RUN_URL}</a><br></p><p><strong>Test Report:</strong> <a href="${REPORT_URL}">${REPORT_URL}</a></p><p>Best regards,<br>Your Automation Team</p>",
104103
"subject": "${{ env.accelerator_name }} Test Automation - Success"
105104
}
106105
EOF
107106
)
108107
else
109108
EMAIL_BODY=$(cat <<EOF
110109
{
111-
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${{ env.accelerator_name }} Test Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Run URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p><strong>Test Report:</strong> ${REPORT_URL}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>",
110+
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${{ env.accelerator_name }} Test Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Run URL:</strong> <a href="${RUN_URL}">${RUN_URL}</a><br></p><p><strong>Test Report:</strong> <a href="${REPORT_URL}">${REPORT_URL}</a></p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>",
112111
"subject": "${{ env.accelerator_name }} Test Automation - Failure"
113112
}
114113
EOF

0 commit comments

Comments
 (0)