This commit is contained in:
2025-04-13 14:35:03 +08:00
parent ef15f93a98
commit 4df85be884

View File

@@ -56,16 +56,16 @@ steps:
content_type: application/json
template: |
{
"msgtype": "markdown",
"markdown": {
"content": "{{#success build.status}}✅{{else}}❌{{/success}}**{{ repo.owner }}/{{ repo.name }}** (Build #{{build.number}})\n
>**构建结果**: {{ build.status }}
>**构建详情**: [点击查看]({{ build.link }})
>**代码分支**: {{ build.branch }}
>**提交标识**: {{ build.commit }}
>**提交发起**: ![头像](${DRONE_COMMIT_AUTHOR_AVATAR}) ${DRONE_COMMIT_AUTHOR} ![头像](${DRONE_COMMIT_AUTHOR_AVATAR})
>**提交信息**: {{ build.message }}
"
"msgtype": "news",
"news": {
"articles": [
{
"title": "{{repo.owner}}/{{repo.name}} 构建通知 ({{build.status}})",
"description": "{{#success build.status}}成功{{else}}失败{{/success}} | 分支: {{build.branch}} | 提交: {{build.commit}}",
"url": "{{build.link}}",
"picurl": "${DRONE_COMMIT_AUTHOR_AVATAR}"
}
]
}
}