This commit is contained in:
parent
2f339a2205
commit
a5d77b1c17
12
.drone.yml
12
.drone.yml
|
@ -26,6 +26,8 @@ steps:
|
||||||
from_secret: cargo_registry_token
|
from_secret: cargo_registry_token
|
||||||
- name: discord notification
|
- name: discord notification
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
|
when:
|
||||||
|
status: [success, failure]
|
||||||
settings:
|
settings:
|
||||||
webhook_id:
|
webhook_id:
|
||||||
from_secret: discord_webhook_id
|
from_secret: discord_webhook_id
|
||||||
|
@ -34,9 +36,11 @@ steps:
|
||||||
tts: true
|
tts: true
|
||||||
message: >
|
message: >
|
||||||
{{#success build.status}}
|
{{#success build.status}}
|
||||||
{{repo.name}} build {{build.number}} succeeded. <{{build.link}}>
|
{{repo.name}} build {{build.number}} succeeded:
|
||||||
|
{{build.message}}
|
||||||
|
<{{build.link}}>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{repo.name}} build {{build.number}} failed. <{{build.link}}>
|
{{repo.name}} build {{build.number}} failed:
|
||||||
|
{{build.message}}
|
||||||
|
<{{build.link}}>
|
||||||
{{/success}}
|
{{/success}}
|
||||||
when:
|
|
||||||
status: [success, failure]
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user