forked from openvinotoolkit/datumaro
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.34 KB
/
notify_teams.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Notify to Microsoft Teams
on:
workflow_call:
secrets:
MSTEAMS_WEBHOOK:
required: true
jobs:
notify-to-teams:
runs-on: ubuntu-latest
steps:
- name: Microsoft Teams Notification
uses: skitionek/notify-microsoft-teams@master
if: always()
with:
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
raw: >-
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"title": "Failure on ${{ github.workflow }}",
"summary": "Failure on ${{ github.workflow }}",
"sections": [
{
"activityTitle": "Failure on ${{ github.workflow }}",
"activitySubtitle": "",
"activityImage": "https://raw.githubusercontent.com/Skitionek/notify-microsoft-teams/master/icons/failure.png"
}
],
"potentialAction": [
{
"@type": "OpenUri",
"name": "Go to failure",
"targets": [
{
"os": "default",
"uri": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
]
}
]
}