edited notification message format
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
surtur 2020-03-11 19:14:43 +01:00
parent 7a29b9152c
commit bf45c0481d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -8,7 +8,7 @@ platform:
steps:
- name: call webhook
pull: always
image: curlimages/curl
image: curlimages/curl:latest
environment:
ENDPOINT:
from_secret: dockerhub_endpoint
@ -50,7 +50,7 @@ steps:
pull: always
image: appleboy/drone-discord:1.2.4
settings:
message: "{{#success build.status}} {{commit.author}}\n✅Build #{{build.number}} of `{{repo.name}}` succeeded.\nevent: **`{{build.event}}`**\n\ncommit `{{build.commit}}` on `{{commit.branch}}`\n```{{commit.message}}```\n[build log]({{build.link}}) {{else}} {{commit.author}}\n❌Build #{{build.number}} of `{{repo.name}}` failed.\ncommit [`{{build.commit}}`](https://git.dotya.ml/{{repo.owner}}/{{repo.name}}/commit/{{build.commit}}) on `{{commit.branch}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n[build log]({{build.link}}) {{/success}}\n"
message: "{{#success build.status}} ✅Build #{{build.number}} of `{{repo.name}}` succeeded.\nevent: **`{{build.event}}`**\n\ncommit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/{{repo.owner}}/{{repo.name}}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}`\n```{{commit.message}}```\n[build log]({{build.link}}) {{else}} ❌Build #{{build.number}} of `{{repo.name}}` failed.\ncommit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/{{repo.owner}}/{{repo.name}}/commit/${DRONE_COMMIT_SHA}) by {{commit.author} on `{{commit.branch}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n[build log]({{build.link}}) {{/success}}\n"
webhook_id:
from_secret: discord_webhook_id
webhook_token: