From c4dbfa6d6cdd455bebe075734d1e0677d4afe3e3 Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Thu, 14 Oct 2021 17:41:56 +0200 Subject: [PATCH] Update Discord notification message --- .drone.yml | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8dfbdad..7b6f86e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -99,7 +99,27 @@ steps: - name: discord notification (private) image: appleboy/drone-discord settings: - message: "{{#success build.status}} āœ… Build #{{build.number}} of `{{repo.name}}` succeeded.\n\nšŸ“ Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\nšŸŒ {{ build.link }} {{else}} āŒ Build #{{build.number}} of `{{repo.name}}` failed.\n\nšŸ“ Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\nšŸŒ {{ build.link }} {{/success}}\n" + message: | + {{#success build.status}} + ``` + āœ… Build #{{build.number}} of `{{repo.name}}` succeeded. + + šŸ“ Commit by {{commit.author}} on `{{commit.branch}}`: + ------------------------------------------------------- + {{commit.message}} + ------------------------------------------------------- + šŸŒ {{ build.link }}``` + {{else}} + ``` + āŒ Build #{{build.number}} of `{{repo.name}}` failed. + + šŸ“ Commit by {{commit.author}} on `{{commit.branch}}`: + ------------------------------------------------------- + {{commit.message}} + ------------------------------------------------------- + + šŸŒ {{ build.link }}``` + {{/success}}" webhook_id: from_secret: discord_webhook_id_private webhook_token: @@ -109,7 +129,27 @@ steps: - name: discord notification (dev server) image: appleboy/drone-discord settings: - message: "{{#success build.status}} āœ… Build #{{build.number}} of `{{repo.name}}` succeeded.\n\nšŸ“ Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\nšŸŒ {{ build.link }} {{else}} āŒ Build #{{build.number}} of `{{repo.name}}` failed.\n\nšŸ“ Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\nšŸŒ {{ build.link }} {{/success}}\n" + message: | + {{#success build.status}} + ``` + āœ… Build #{{build.number}} of `{{repo.name}}` succeeded. + + šŸ“ Commit by {{commit.author}} on `{{commit.branch}}`: + ------------------------------------------------------- + {{commit.message}} + ------------------------------------------------------- + šŸŒ {{ build.link }}``` + {{else}} + ``` + āŒ Build #{{build.number}} of `{{repo.name}}` failed. + + šŸ“ Commit by {{commit.author}} on `{{commit.branch}}`: + ------------------------------------------------------- + {{commit.message}} + ------------------------------------------------------- + + šŸŒ {{ build.link }}``` + {{/success}}" webhook_id: from_secret: discord_webhook_id_dev_server webhook_token: