Update Discord notification message
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
12f2ee5161
commit
c4dbfa6d6c
1 changed files with 42 additions and 2 deletions
44
.drone.yml
44
.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:
|
||||
|
|
Reference in a new issue