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 Aug 29, 2024
1 parent 52049b0 commit 521ceb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ jobs:
--template-file infra/main.bicep \
--parameters environmentName=pslautomation location=eastus2
- name: Install mailx
run: sudo apt-get update && sudo apt-get install -y mailx

- name: Send Success Email
if: ${{ success() }}
run: echo "Deployment succeeded" | mail -s "Azure Deployment Success" v-pmalusare@microsoft.com
run: echo "Deployment succeeded" | mailx -s "Azure Deployment Success" your-email@example.com

- name: Send Failure Email
if: ${{ failure() }}
run: echo "Deployment failed" | mail -s "Azure Deployment Failure" v-pmalusare@microsoft.com
run: echo "Deployment failed" | mailx -s "Azure Deployment Failure" your-email@example.com

0 comments on commit 521ceb8

Please sign in to comment.