From e64a59714ad4fcc8b640a7f9995b4b7f61880160 Mon Sep 17 00:00:00 2001 From: t3hn3rd Date: Sun, 23 Mar 2025 00:41:22 +0000 Subject: [PATCH] Formatting Fixes Formatting was off for the message posted to Discord, it also triggered at the start of the pipeline. - Fixed formatting with an attempt to use newlines. - Added a depends_on `compile`. --- .drone.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 771e5a7b..bda42d0f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,6 +53,8 @@ steps: - name: msg status image: appleboy/drone-discord + depends_on: + - compile when: status: [success, failure, changed] settings: @@ -61,14 +63,17 @@ steps: webhook_token: from_secret: discord_webhook_secret message: > - **Drone CI - Asuro Build** + **Drone CI - Asuro Build**\n {{#success build.status}} - ✅ Build successful! + ✅ Build successful!\n {{else}} - ❌ Build failed! + ❌ Build failed!\n {{/success}} - Repository: `[{{repo.namespace}}/{{repo.name}}]` - Branch: {{build.branch}} - Commit: {{build.commit}} - Author: `[{{commit.author}} / {{commit.email}}]` - Message: {{commit.message}} \ No newline at end of file + Repository: `{{repo.namespace}}/{{repo.name}}`\n + Branch: `{{commit.branch}}`\n + Commit: `{{commit.sha}} ({{commit.link}})`\n + Author: `{{commit.author}} <{{commit.email}}>`\n + Message: + ```\n + {{commit.message}}\n + ``` \ No newline at end of file