Skip to content

Commit 86ca880

Browse files
committed
chore: try to fix dingtalk#40035
1 parent a130447 commit 86ca880

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/dingtalk-notify.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ jobs:
4949
;;
5050
esac
5151
52-
# 构造钉钉消息
53-
MESSAGE="{\n \"msgtype\": \"markdown\",\n \"markdown\": {\n \"title\": \"GitHub ${EVENT_TYPE} ${ACTION}\",\n \"text\": \"## ${EMOJI} GitHub ${EVENT_TYPE} ${ACTION}\\n\\n**仓库**: ${{ github.repository }}\\n\\n**标题**: ${TITLE}\\n\\n**操作人**: ${AUTHOR}\\n\\n[查看详情](${URL})\"\n }\n }"
54-
55-
# 发送到钉钉
52+
# 发送到钉钉
5653
curl -X POST "${{ secrets.DINGTALK_WEBHOOK }}" \
5754
-H "Content-Type: application/json" \
58-
-d "$MESSAGE"
55+
-d '{
56+
"msgtype": "markdown",
57+
"markdown": {
58+
"title": "GitHub '""${EVENT_TYPE}""' '""${ACTION}""'",
59+
"text": "## '""${EMOJI}""' GitHub '""${EVENT_TYPE}""' '""${ACTION}""'\n\n**仓库**: '""${{ github.repository }}""'\n\n**标题**: '""${TITLE}""'\n\n**操作人**: '""${AUTHOR}""'\n\n[查看详情]('""${URL}""')"
60+
}
61+
}'

0 commit comments

Comments
 (0)