修复 Discord 通知:限制消息长度为100字符
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
399220307b
commit
abaf11b8bf
14
.drone.yml
14
.drone.yml
@ -29,18 +29,6 @@ steps:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: Drone CI
|
||||
avatar_url: https://github.com/drone.png
|
||||
message: |
|
||||
{{#success build.status}}
|
||||
✅ **Build #{{build.number}}** succeeded
|
||||
{{else}}
|
||||
❌ **Build #{{build.number}}** failed
|
||||
{{/success}}
|
||||
**Repo:** {{repo.name}}
|
||||
**Branch:** {{build.branch}}
|
||||
**Commit:** `{{truncate build.commit 8}}`
|
||||
**Author:** {{build.author}}
|
||||
**Message:** {{truncate build.message 200}}
|
||||
message: "{{truncate commit.message 100}}"
|
||||
when:
|
||||
status: [success, failure]
|
||||
Loading…
x
Reference in New Issue
Block a user