From 6e53017158f7edee093dbf292c828bc7ea12049e Mon Sep 17 00:00:00 2001 From: MarvinF Date: Thu, 4 Sep 2025 21:40:02 +0200 Subject: [PATCH] Create teams_integration.yml --- .github/workflows/teams_integration.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/teams_integration.yml diff --git a/.github/workflows/teams_integration.yml b/.github/workflows/teams_integration.yml new file mode 100644 index 0000000..4aa4294 --- /dev/null +++ b/.github/workflows/teams_integration.yml @@ -0,0 +1,30 @@ +name: Notify Teams on Release + +on: + release: + types: [published] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Send notification to Teams + run: | + curl -H 'Content-Type: application/json' \ + -d "{ + \"@type\": \"MessageCard\", + \"@context\": \"http://schema.org/extensions\", + \"summary\": \"New Release\", + \"themeColor\": \"0076D7\", + \"title\": \"🚀 New Release: ${{ github.event.release.name }}\", + \"sections\": [{ + \"activityTitle\": \"Version ${{ github.event.release.tag_name }}\", + \"text\": \"${{ github.event.release.body }}\" + }], + \"potentialAction\": [{ + \"@type\": \"OpenUri\", + \"name\": \"View Release\", + \"targets\": [{ \"os\": \"default\", \"uri\": \"${{ github.event.release.html_url }}\" }] + }] + }" \ + ${{ secrets.TEAMS_WEBHOOK_URL }}