From fcb48659833ff4424584e234cac12ab026323c48 Mon Sep 17 00:00:00 2001 From: skins Date: Thu, 3 Jun 2021 23:23:23 +0100 Subject: [PATCH] fixed message --- .drone.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index fb7679e..3956620 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,7 +17,12 @@ steps: webhook_token: from_secret: discord_webhook_token message: > - test failed for commit {{build.commit}} from {{build.author}} in {{build.branch}} on {{repo.name}} + {{#success build.status}} + build {{build.number}} succeeded. Good job. + {{else}} + build {{build.number}} failed. Fix me please. + {{/success}} + username: drone avatar_url: https://drone.malachy.ie/favicon.png when: @@ -32,7 +37,11 @@ steps: webhook_token: from_secret: discord_webhook_token message: > - tests succeeded for commit {{build.commit}} from {{build.author}} in {{build.branch}} on {{repo.name}} + {{#success build.status}} + build {{build.number}} succeeded. Good job. + {{else}} + build {{build.number}} failed. Fix me please. + {{/success}} username: drone avatar_url: https://drone.malachy.ie/favicon.png when: