-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.94 KB
/
connect-notify.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
44
45
46
47
48
49
50
51
52
53
54
name: Serverless Test Notify
on:
workflow_run:
workflows:
- "Serverless Connect Test"
- "Serverless Driver Compatibility Test"
- "Serverless Create Test"
- "Serverless Driver Connect Test"
types:
- completed
jobs:
notify-on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Send Notification
uses: northwang-lucky/[email protected]
with:
app: Lark
webhook: ${{ secrets.NOTIFY_WEBHOOK }}
template: >-
{
"msg_type": "interactive",
"card": {
"elements": [{
"tag": "div",
"text": {
"content": "**Message** \n${{ github.event.workflow_run.name}} #${{ github.event.workflow_run.run_number }} failed",
"tag": "lark_md"
}
}, {
"actions": [{
"tag": "button",
"text": {
"content": "More information",
"tag": "lark_md"
},
"url": "${{ github.event.workflow_run.html_url }}",
"type": "default",
"value": {}
}],
"tag": "action"
}],
"header": {
"title": {
"content": "Ecosystem Integrations Notify",
"tag": "plain_text"
},
"template": "red"
}
}
}