Skip to content

Commit 4740435

Browse files
testing automation flow
1 parent 6b99b47 commit 4740435

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,23 @@ jobs:
6161
--parameters AzureAiServiceLocation=northcentralus Prefix=codegen
6262
6363
64-
- name: Send Notification on Failure
65-
if: failure()
66-
run: |
67-
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
64+
# - name: Send Notification on Failure
65+
# if: failure()
66+
# run: |
67+
# RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
6868

69-
# Construct the email body
70-
EMAIL_BODY=$(cat <<EOF
71-
{
72-
"body": "<p>Dear Team,</p><p>We would like to inform you that the Modernize-your-code-solution-accelerator Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"
73-
}
74-
EOF
75-
)
69+
# # Construct the email body
70+
# EMAIL_BODY=$(cat <<EOF
71+
# {
72+
# "body": "<p>Dear Team,</p><p>We would like to inform you that the Modernize-your-code-solution-accelerator Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"
73+
# }
74+
# EOF
75+
# )
7676

77-
# Send the notification
78-
curl -X POST "${{ secrets.LOGIC_APP_URL }}" \
79-
-H "Content-Type: application/json" \
80-
-d "$EMAIL_BODY" || echo "Failed to send notification"
77+
# # Send the notification
78+
# curl -X POST "${{ secrets.LOGIC_APP_URL }}" \
79+
# -H "Content-Type: application/json" \
80+
# -d "$EMAIL_BODY" || echo "Failed to send notification"
8181

8282

8383
- name: Get Log Analytics Workspace from Resource Group

0 commit comments

Comments
 (0)