mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
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 }}
|