-
Notifications
You must be signed in to change notification settings - Fork 199
60 lines (56 loc) · 2.11 KB
/
release-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
name: 🎉 Release Notify
on:
release:
# published: latest release 和 pre release 都会触发
# prereleased: 只有 pre release 触发
# released: 只有 latest release 触发
types: [released]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Latest Release Notify
uses: zcong1993/actions-ding@master
with:
dingToken: ${{ secrets.DING_TALK_ACCESS_TOKEN }}
ignoreError: true
body: |
{
"msgtype": "link",
"link": {
"title": "🎉 AntV/S2 新版本发布啦 (${{ github.head_ref || github.ref_name }}) 🎉",
"text": "📋 点击查看更新日志",
"messageUrl": "https://github.com/antvis/S2/releases",
"picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original"
}
}
- name: Latest Release Notify
uses: zcong1993/actions-ding@master
with:
dingToken: ${{ secrets.DING_TALK_GROUP_TOKEN }}
ignoreError: true
body: |
{
"msgtype": "link",
"link": {
"title": "🎉 AntV/S2 新版本发布啦 🎉",
"text": "📋 点击查看更新日志",
"messageUrl": "https://github.com/antvis/S2/releases",
"picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original"
}
}
- name: Latest Release Notify
uses: zcong1993/actions-ding@master
with:
dingToken: ${{ secrets.DING_TALK_PUBLIC_TOKEN }}
ignoreError: true
body: |
{
"msgtype": "link",
"link": {
"title": "🎉 AntV/S2 新版本发布啦 🎉",
"text": "📋 点击查看更新日志",
"messageUrl": "https://github.com/antvis/S2/releases",
"picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original"
}
}