-
Notifications
You must be signed in to change notification settings - Fork 2k
114 lines (106 loc) · 4.31 KB
/
announcement-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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Annoucement Notify
on:
discussion:
types: [created]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send DingGroup1 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_1_TOKEN }}
secret: ${{ secrets.DING_GROUP_1_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup2 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_2_TOKEN }}
secret: ${{ secrets.DING_GROUP_2_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup3 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_3_TOKEN }}
secret: ${{ secrets.DING_GROUP_3_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup4 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_4_TOKEN }}
secret: ${{ secrets.DING_GROUP_4_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup5 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_5_TOKEN }}
secret: ${{ secrets.DING_GROUP_5_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup6 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_6_TOKEN }}
secret: ${{ secrets.DING_GROUP_6_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup7 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_7_TOKEN }}
secret: ${{ secrets.DING_GROUP_7_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}