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: