From 87bbe2f736101e8230af988ceeafa720c0228f31 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 22 Sep 2021 09:31:14 +0200 Subject: [PATCH] improve drone-matrix template --- .drone.jsonnet | 2 +- .drone.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index f1a77ce..b4d07e5 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -462,7 +462,7 @@ local PipelineNotifications = { settings: { homeserver: { from_secret: 'matrix_homeserver' }, roomid: { from_secret: 'matrix_roomid' }, - template: 'Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}', + template: 'Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}
Message: {{ commit.Message.Title }}', username: { from_secret: 'matrix_username' }, password: { from_secret: 'matrix_password' }, }, diff --git a/.drone.yml b/.drone.yml index a4b5d54..62245ed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -609,7 +609,7 @@ steps: from_secret: matrix_password roomid: from_secret: matrix_roomid - template: "Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}" + template: "Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}
Message: {{ commit.Message.Title }}" username: from_secret: matrix_username when: @@ -630,6 +630,6 @@ depends_on: --- kind: signature -hmac: 5d6ad054e63dc796502202f7e7735278ffe6451793c5b51f60a4390d86d91651 +hmac: 3dcbbfed931a520922ecfeeacdfa0716b7423a85254b22173a74bc7b9897830b ...