chore(ci): update discord notification format
Some checks failed
continuous-integration/drone/push Build is failing

- Extract only first line of commit message using head command
- Add embed color for better visibility
- Use Chinese labels for clearer notification
- Simplify message structure to prevent overflow
This commit is contained in:
Ching L 2025-09-11 16:56:13 +08:00
parent 33417bbee5
commit 3a9bb1b68d

View File

@ -57,12 +57,14 @@ steps:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
message: |
Drone Build #${DRONE_BUILD_NUMBER} ${DRONE_BUILD_STATUS}
Project: ${DRONE_REPO_NAME}
Branch: ${DRONE_BRANCH}
Commit: ${DRONE_COMMIT_SHA:0:8}
[Build Log](${DRONE_BUILD_LINK})
color: "#48f442" # 指定 embed 样式
message:
- |
${DRONE_REPO} 构建通知
Commit: $(echo "${DRONE_COMMIT_MESSAGE}" | head -n1)
Branch: ${DRONE_COMMIT_BRANCH}
状态: ${DRONE_BUILD_STATUS}
链接: ${DRONE_BUILD_LINK}
when:
status: [success, failure]