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 6, 2024
1 parent eedc015 commit 4fc150c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,24 @@ jobs:
id: deploy
run: |
set -e
az deployment sub create \
# Execute the deployment and capture the output and error
output=$(az deployment sub create \
--name autoDemo \
--location eastus \
--template-file infra/main.bicep \
--parameters environmentName=pslautomation location=eastus2
--parameters environmentName=pslautomation location=eastus2 2>&1)
# Check if the command was successful
if [ $? -ne 0 ]; then
echo "Deployment failed with the following error:"
echo "$output"
exit 1
else
echo "Deployment succeeded."
echo "$output"
fi
- name: Send Notification on Failure
if: failure()
Expand Down

0 comments on commit 4fc150c

Please sign in to comment.