mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Merge pull request #174 from Deutscher-Tischfussballbund/sportsmanager2-dev
dev to stage
This commit is contained in:
@@ -98,3 +98,24 @@ jobs:
|
||||
else
|
||||
echo "No draft releases found"
|
||||
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 }}
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user