mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Merge pull request #173 from Deutscher-Tischfussballbund/sportsmanager2-stage
stage to prod
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user