Update Discord notification message
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Berger 2021-10-14 17:41:56 +02:00
parent 12f2ee5161
commit c4dbfa6d6c

View file

@ -99,7 +99,27 @@ steps:
- name: discord notification (private) - name: discord notification (private)
image: appleboy/drone-discord image: appleboy/drone-discord
settings: 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: webhook_id:
from_secret: discord_webhook_id_private from_secret: discord_webhook_id_private
webhook_token: webhook_token:
@ -109,7 +129,27 @@ steps:
- name: discord notification (dev server) - name: discord notification (dev server)
image: appleboy/drone-discord image: appleboy/drone-discord
settings: 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: webhook_id:
from_secret: discord_webhook_id_dev_server from_secret: discord_webhook_id_dev_server
webhook_token: webhook_token: