File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ curl -H "Authorization: token $GITHUB_TOKEN" $url > $resp_tmp_file
1717
1818html_url=$( sed -n 5p $resp_tmp_file | sed ' s/\"html_url\"://g' | awk -F ' "' ' {print $2}' )
1919body=$( grep body < $resp_tmp_file | sed ' s/\"body\"://g;s/\"//g' )
20+ version=$( echo $html_url | awk -F ' /' ' {print $NF}' )
2021
21- msg=' {"msgtype": "markdown", "markdown": {"title": "{{componentName}}更新", "text": "@所有人\n# [{{componentName}}](' $html_url ' )\n' $body ' "}}'
22+ msg=' {"msgtype": "markdown", "markdown": {"title": "{{componentName}}更新", "text": "@所有人\n# [{{componentName}}( ' $version ' ) ](' $html_url ' )\n' $body ' "}}'
2223
2324curl -X POST https://oapi.dingtalk.com/robot/send\? access_token\= $DINGTALK_ROBOT_TOKEN -H ' Content-Type: application/json' -d " $msg "
2425
You can’t perform that action at this time.
0 commit comments