You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# "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>"
74
-
# }
75
-
# EOF
76
-
# )
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
+
)
77
76
78
-
# # Send the notification
79
-
# curl -X POST "${{ secrets.LOGIC_APP_URL }}" \
80
-
# -H "Content-Type: application/json" \
81
-
# -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"
82
81
83
82
84
-
- name: Get Log Analytics Workspace from Resource Group
85
-
id: get_log_analytics_workspace
83
+
- name: Get Log Analytics Workspace and OpenAI from Resource Group
0 commit comments