From 93f8840260ad9a878e73dcafe41d33f890d67c19 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Tue, 24 Aug 2021 10:20:49 -0700 Subject: [PATCH] Enable sending Teams notification when workflow fails (#15982) --- .github/workflows/daily.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 1535fced83..6e3a38ac1b 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -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