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 9306c7b commit c5c26b0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,9 @@ 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 "$JSON_PAYLOAD"
-d '{"failureMessage": "The deployment failed. Please check the logs for more details."}'
# - name: Send Notification on Failure
Expand Down

0 comments on commit c5c26b0

Please sign in to comment.