Add success/fail notifications

v1-devel 0.4.2-rc6
garrettmills 4 years ago
parent cf9aa6db95
commit c72052fd23
No known key found for this signature in database
GPG Key ID: 6ACD58D6ADACFC6E

@ -31,7 +31,7 @@ steps:
from_secret: npm_email from_secret: npm_email
when: when:
event: tag event: tag
- name: send notifications - name: send success notifications
image: plugins/webhook image: plugins/webhook
settings: settings:
urls: urls:
@ -40,6 +40,24 @@ steps:
template: | template: |
{ {
"title": "Drone-CI [flitter-di]", "title": "Drone-CI [flitter-di]",
"message": "Published release ${DRONE_TAG} successfully.", "message": "Published release flitter-di@${DRONE_TAG} successfully.",
"priority": 5 "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