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 @@ -12,8 +12,9 @@ curl -H "Authorization: token $GITHUB_TOKEN" $url > $resp_tmp_file
1212
1313html_url=$( sed -n 5p $resp_tmp_file | sed ' s/\"html_url\"://g' | awk -F ' "' ' {print $2}' )
1414body=$( grep body < $resp_tmp_file | sed ' s/\"body\"://g;s/\"//g' )
15+ version=$( echo $html_url | awk -F ' /' ' {print $NF}' )
1516
16- msg=' {"msgtype": "markdown", "markdown": {"title": "vue-sfc-cli更新", "text": "@所有人\n# [vue-sfc-cli](' $html_url ' )\n' $body ' "}}'
17+ msg=' {"msgtype": "markdown", "markdown": {"title": "vue-sfc-cli更新", "text": "@所有人\n# [vue-sfc-cli( ' $version ' ) ](' $html_url ' )\n' $body ' "}}'
1718
1819curl -X POST https://oapi.dingtalk.com/robot/send\? access_token\= $DINGTALK_ROBOT_TOKEN -H ' Content-Type: application/json' -d " $msg "
1920
You can’t perform that action at this time.
0 commit comments