diff --git a/.drone.yml b/.drone.yml index 5405b7e..6b531e9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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}" + } + ] } }