From 9fca0ead10fbf91dc8c225075baae53f77bc0d6d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 19 Sep 2021 15:43:03 +0200 Subject: [PATCH] fix matrix notification template --- .drone.jsonnet | 2 +- .drone.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 157e0c5..85ee401 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -365,7 +365,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 {{ build.author }}
Message: {{ build.message }}', + template: 'Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}', username: { from_secret: 'matrix_username' }, password: { from_secret: 'matrix_password' }, }, diff --git a/.drone.yml b/.drone.yml index bedcbb0..23976d3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -505,7 +505,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 {{ build.author }}
Message: {{ build.message }}" + template: "Status: **{{ build.Status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}) ({{ build.Branch }}) by {{ commit.Author }}
Message: {{ commit.Message }}" username: from_secret: matrix_username when: @@ -529,6 +529,6 @@ depends_on: --- kind: signature -hmac: 8d31ff0573bc5356cca276031a5fac1244c6b801bddfaf74a739e7524a18594c +hmac: 917b711ea813ef11de7fbea619deddc363ff8ba890adc2d63dd29a3f41016453 ...