diff --git a/.github/workflows/deploy-stage.yml b/.github/workflows/deploy-stage.yml index b84197b8b..75111bb8d 100644 --- a/.github/workflows/deploy-stage.yml +++ b/.github/workflows/deploy-stage.yml @@ -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