Skip to content

Commit 6c73b0d

Browse files
fix email body formatting
1 parent 7c12681 commit 6c73b0d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/test-automation.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55
branches:
66
- main
77
- dev
8-
paths:
9-
- 'tests/e2e-test/**'
8+
- migrate-test-automation
9+
# paths:
10+
# - 'tests/e2e-test/**'
1011
schedule:
1112
- cron: '0 13 * * *' # Runs at 1 PM UTC
1213
workflow_dispatch:
@@ -100,15 +101,15 @@ jobs:
100101
if [ "$IS_SUCCESS" = "true" ]; then
101102
EMAIL_BODY=$(cat <<EOF
102103
{
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> <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>",
104+
"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>",
104105
"subject": "${{ env.accelerator_name }} Test Automation - Success"
105106
}
106107
EOF
107108
)
108109
else
109110
EMAIL_BODY=$(cat <<EOF
110111
{
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> <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>",
112+
"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>",
112113
"subject": "${{ env.accelerator_name }} Test Automation - Failure"
113114
}
114115
EOF

0 commit comments

Comments
 (0)