From f285fa6047725362ee8c9209d37e4048490f0856 Mon Sep 17 00:00:00 2001 From: unglaublicherdude Date: Fri, 21 Jul 2023 16:51:09 +0200 Subject: [PATCH] add teams webhook --- .github/workflows/ci-dotnet.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-dotnet.yaml b/.github/workflows/ci-dotnet.yaml index 893469df..23a0ad11 100644 --- a/.github/workflows/ci-dotnet.yaml +++ b/.github/workflows/ci-dotnet.yaml @@ -15,7 +15,7 @@ on: - "dotnet/**" - ".github/workflows/ci-dotnet.yaml" workflow_dispatch: - + jobs: build-dotnet: name: Build & Test C# SDK @@ -33,7 +33,7 @@ jobs: dotnet-version: ${{ matrix.dotnet-version }} - name: Install dependencies - run: dotnet restore + run: dotnet res working-directory: dotnet/Vaas - name: extract version @@ -98,3 +98,12 @@ jobs: NUGET_FEED: https://api.nuget.org/v3/index.json run: dotnet nuget push src/Vaas/bin/Release/*.nupkg --skip-duplicate --source $NUGET_FEED --api-key $NUGET_KEY working-directory: dotnet/Vaas + + - name: Microsoft Teams Notification + uses: skitionek/notify-microsoft-teams@master + if: failure() + with: + webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }} + needs: ${{ toJson(needs) }} + job: ${{ toJson(job) }} + steps: ${{ toJson(steps) }}