Browse Source

Add success/fail notifications

v1-devel 0.4.2-rc6
garrettmills 2 years ago
parent
commit
c72052fd23
No known key found for this signature in database GPG Key ID: 6ACD58D6ADACFC6E
  1. 26
      .drone.yml

26
.drone.yml

@ -31,7 +31,7 @@ steps:
from_secret: npm_email
when:
event: tag
- name: send notifications
- name: send success notifications
image: plugins/webhook
settings:
urls:
@ -40,6 +40,24 @@ steps:
template: |
{
"title": "Drone-CI [flitter-di]",
"message": "Published release ${DRONE_TAG} successfully.",
"priority": 5
}
"message": "Published release flitter-di@${DRONE_TAG} successfully.",
"priority": 4
}
when:
status: success
event: tag
- name: send error notifications
image: plugins/webhook
settings:
urls:
from_secret: notify_webhook_url
content_type: application/json
template: |
{
"title": "Drone-CI [flitter-di]",
"message": "An error was encountered while releasing flitter-di@${DRONE_TAG}.",
"priority": 6
}
when:
status: failure
event: tag
Loading…
Cancel
Save