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 CKMv2 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>"
82
+
}
83
+
EOF
84
+
)
85
+
86
+
# Send the notification
87
+
curl -X POST "${{ secrets.LOGIC_APP_URL }}" \
88
+
-H "Content-Type: application/json" \
89
+
-d "$EMAIL_BODY" || echo "Failed to send notification"
90
+
91
+
92
+
- name: Delete Bicep Deployment
93
+
94
+
run: |
95
+
set -e
96
+
echo "Checking if resource group exists..."
97
+
rg_exists=$(az group exists --name ${{ env.RESOURCE_GROUP_NAME }})
98
+
if [ "$rg_exists" = "true" ]; then
99
+
echo "Resource group exist. Cleaning..."
100
+
az group delete \
101
+
--name ${{ env.RESOURCE_GROUP_NAME }} \
102
+
--yes \
103
+
--no-wait
104
+
echo "Resource group deleted... ${{ env.RESOURCE_GROUP_NAME }}"
0 commit comments