Merge pull request #174 from Deutscher-Tischfussballbund/sportsmanager2-dev

dev to stage
This commit is contained in:
MarvinF
2025-09-04 22:04:25 +02:00
committed by GitHub
2 changed files with 21 additions and 30 deletions
+21
View File
@@ -98,3 +98,24 @@ jobs:
else else
echo "No draft releases found" echo "No draft releases found"
fi fi
- 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 }}
-30
View File
@@ -1,30 +0,0 @@
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 }}