From 4df85be884f4e5a10265c5e4f217807f47f93917 Mon Sep 17 00:00:00 2001 From: clay Date: Sun, 13 Apr 2025 14:35:03 +0800 Subject: [PATCH] feat: 1 --- .drone.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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}" + } + ] } }