Skip to content

Commit

Permalink
testing automation flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-Microsoft committed Sep 11, 2024
1 parent 41000f5 commit 9306c7b
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,16 @@ jobs:
- name: Send Notification on Failure
if: failure()
run: |
# Define custom failure message
FAILURE_MESSAGE="The deployment failed. Please check the logs for more details."
# Construct JSON payload with the custom message
JSON_PAYLOAD=$(printf '{"failureMessage": "%s"}' "$FAILURE_MESSAGE")
curl -X POST "${{ secrets.AUTO_LOGIC_APP_URL }}" \
-H "Content-Type: application/json" \
-d '{
"message": {
"subject": "Deployment Failure!!!",
"body": {
"contentType": "Text",
"content": "The deployment failed(cwyd)."
},
"toRecipients": [
{
"emailAddress": {
"address": "v-pmalusare@MngEnvMCAP993385.onmicrosoft.com"
}
}
]
}
}'
-d "$JSON_PAYLOAD"
# - name: Send Notification on Failure
Expand Down

0 comments on commit 9306c7b

Please sign in to comment.