File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 npm_config_legacy_peer_deps : true
7070 run : pnpm release
7171
72+ - name : Extract release version
73+ id : version
74+ run : |
75+ TAG=$(echo "${{ github.event.head_commit.message }}" | grep -oP '@antv/s2-v[\d\.\-a-zA-Z]+' || echo "${{ github.ref_name }}")
76+ echo "tag=${TAG}" >> $GITHUB_OUTPUT
77+
7278 - name : Release success ding talk dev group notify
7379 uses : zcong1993/actions-ding@master
7480 with :
7884 {
7985 "msgtype": "link",
8086 "link": {
81- "title": "🎉 ${{ github.head_ref || github.ref_name || 'AntV/S2 新版本' }} 发布啦 🎉",
87+ "title": "🎉 ${{ steps.version.outputs.tag || 'AntV/S2 新版本' }} 发布啦 🎉",
8288 "text": "📋 点击查看更新日志",
8389 "messageUrl": "https://github.com/antvis/S2/releases",
8490 "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original"
94100 {
95101 "msgtype": "link",
96102 "link": {
97- "title": "🎉 ${{ github.head_ref || github.ref_name || 'AntV/S2 新版本' }} 发布啦 🎉",
103+ "title": "🎉 ${{ steps.version.outputs.tag || 'AntV/S2 新版本' }} 发布啦 🎉",
98104 "text": "📋 点击查看更新日志",
99105 "messageUrl": "https://github.com/antvis/S2/releases",
100106 "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original"
@@ -110,7 +116,7 @@ jobs:
110116 {
111117 "msgtype": "link",
112118 "link": {
113- "title": "🎉 ${{ github.head_ref || github.ref_name || 'AntV/S2 新版本' }} 发布啦 🎉",
119+ "title": "🎉 ${{ steps.version.outputs.tag || 'AntV/S2 新版本' }} 发布啦 🎉",
114120 "text": "📋 点击查看更新日志",
115121 "messageUrl": "https://github.com/antvis/S2/releases",
116122 "picUrl": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*1PTTQLk3j5AAAAAAAAAAAAAADmJ7AQ/original"
You can’t perform that action at this time.
0 commit comments