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:
parent
dd5d908e43
commit
e64a59714a
21
.drone.yml
21
.drone.yml
@ -53,6 +53,8 @@ steps:
|
|||||||
|
|
||||||
- name: msg status
|
- name: msg status
|
||||||
image: appleboy/drone-discord
|
image: appleboy/drone-discord
|
||||||
|
depends_on:
|
||||||
|
- compile
|
||||||
when:
|
when:
|
||||||
status: [success, failure, changed]
|
status: [success, failure, changed]
|
||||||
settings:
|
settings:
|
||||||
@ -61,14 +63,17 @@ steps:
|
|||||||
webhook_token:
|
webhook_token:
|
||||||
from_secret: discord_webhook_secret
|
from_secret: discord_webhook_secret
|
||||||
message: >
|
message: >
|
||||||
**Drone CI - Asuro Build**
|
**Drone CI - Asuro Build**\n
|
||||||
{{#success build.status}}
|
{{#success build.status}}
|
||||||
✅ Build successful!
|
✅ Build successful!\n
|
||||||
{{else}}
|
{{else}}
|
||||||
❌ Build failed!
|
❌ Build failed!\n
|
||||||
{{/success}}
|
{{/success}}
|
||||||
Repository: `[{{repo.namespace}}/{{repo.name}}]`
|
Repository: `{{repo.namespace}}/{{repo.name}}`\n
|
||||||
Branch: {{build.branch}}
|
Branch: `{{commit.branch}}`\n
|
||||||
Commit: {{build.commit}}
|
Commit: `{{commit.sha}} ({{commit.link}})`\n
|
||||||
Author: `[{{commit.author}} / {{commit.email}}]`
|
Author: `{{commit.author}} <{{commit.email}}>`\n
|
||||||
Message: {{commit.message}}
|
Message:
|
||||||
|
```\n
|
||||||
|
{{commit.message}}\n
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user