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