feat(drone): add dynamic color for build status
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ching L 2025-09-11 17:05:28 +08:00
parent 66073ef2ac
commit 499dc9dc13

View File

@ -57,6 +57,8 @@ 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
color: >
$(if [ "${DRONE_BUILD_STATUS}" = "success" ]; then echo "#48f442"; else echo "#ff4f42"; fi)
message: message:
- | - |
${DRONE_REPO} 构建通知 ${DRONE_REPO} 构建通知