Enable sending Teams notification when workflow fails (#15982)

This commit is contained in:
Aditya Patwardhan 2021-08-24 10:20:49 -07:00 committed by GitHub
parent bd84f4265b
commit 56d22bc386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,11 @@ jobs:
Write-Verbose "CREATE_PR=true" -Verbose
"CREATE_PR=true" | Out-File $env:GITHUB_ENV -Append
}
- name: Microsoft Teams Notifier
uses: skitionek/notify-microsoft-teams@master
if: failure()
with:
webhook_url: ${{ secrets.PS_BUILD_TEAMS_CHANNEL }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
id: cpr