Skip to content

Commit c3d8fa9

Browse files
Remove Image Tag and Branch Name from Notification
1 parent 1726e1d commit c3d8fa9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/deploy-Parameterized.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,11 +822,10 @@ jobs:
822822
run: |
823823
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
824824
RESOURCE_GROUP="${{ needs.deploy.outputs.RESOURCE_GROUP_NAME }}"
825-
IMAGE_TAG="${{ needs.deploy.outputs.IMAGE_TAG }}"
826825
827826
EMAIL_BODY=$(cat <<EOF
828827
{
829-
"body": "<p>Dear Team,</p><p>We would like to inform you that the DocGen deployment process has encountered an issue and has failed to complete successfully.</p><p><strong>Deployment Details:</strong><br>• Resource Group: ${RESOURCE_GROUP}<br>• Docker Image Tag: ${IMAGE_TAG}<br>• WAF Enabled: ${{ env.WAF_ENABLED }}<br>• EXP Enabled: ${{ env.EXP }}<br>• Branch: ${{ env.BRANCH_NAME }}</p><p><strong>Build 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>",
828+
"body": "<p>Dear Team,</p><p>We would like to inform you that the DocGen deployment process has encountered an issue and has failed to complete successfully.</p><p><strong>Deployment Details:</strong><br>• Resource Group: ${RESOURCE_GROUP}<br>• WAF Enabled: ${{ env.WAF_ENABLED }}<br>• EXP Enabled: ${{ env.EXP }}</p><p><strong>Build 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>",
830829
"subject": "DocGen Deployment - Failed"
831830
}
832831
EOF
@@ -842,7 +841,6 @@ jobs:
842841
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
843842
WEBAPP_URL="${{ needs.deploy.outputs.WEBAPP_URL || github.event.inputs.existing_webapp_url }}"
844843
RESOURCE_GROUP="${{ needs.deploy.outputs.RESOURCE_GROUP_NAME }}"
845-
IMAGE_TAG="${{ needs.deploy.outputs.IMAGE_TAG }}"
846844
TEST_REPORT_URL="${{ needs.e2e-test.outputs.TEST_REPORT_URL }}"
847845
848846
# Determine test status message
@@ -854,7 +852,7 @@ jobs:
854852
855853
EMAIL_BODY=$(cat <<EOF
856854
{
857-
"body": "<p>Dear Team,</p><p>We would like to inform you that the DocGen deployment and testing process has completed successfully.</p><p><strong>Deployment Details:</strong><br>• Resource Group: ${RESOURCE_GROUP}<br>• Web App URL: <a href=\"${WEBAPP_URL}\">${WEBAPP_URL}</a><br>• Docker Image Tag: ${IMAGE_TAG}<br>${TEST_STATUS_MSG}</p><p><strong>Configuration:</strong><br>• WAF Enabled: ${{ env.WAF_ENABLED }}<br>• EXP Enabled: ${{ env.EXP }}<br>• Branch: ${{ env.BRANCH_NAME }}</p><p><strong>Build URL:</strong> <a href=\"${RUN_URL}\">${RUN_URL}</a></p><p>The application is now ready for use.</p><p>Best regards,<br>Your Automation Team</p>",
855+
"body": "<p>Dear Team,</p><p>We would like to inform you that the DocGen deployment and testing process has completed successfully.</p><p><strong>Deployment Details:</strong><br>• Resource Group: ${RESOURCE_GROUP}<br>• Web App URL: <a href=\"${WEBAPP_URL}\">${WEBAPP_URL}</a><br>${TEST_STATUS_MSG}</p><p><strong>Configuration:</strong><br>• WAF Enabled: ${{ env.WAF_ENABLED }}<br>• EXP Enabled: ${{ env.EXP }}</p><p><strong>Build URL:</strong> <a href=\"${RUN_URL}\">${RUN_URL}</a></p><p>The application is now ready for use.</p><p>Best regards,<br>Your Automation Team</p>",
858856
"subject": "DocGen Pipeline - Success"
859857
}
860858
EOF

0 commit comments

Comments
 (0)