Formatting Fixes
All checks were successful
continuous-integration/drone/push Build is passing

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`.
This commit is contained in:
t3hn3rd 2025-03-23 00:41:22 +00:00
parent dd5d908e43
commit e64a59714a

View File

@ -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}}
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
```