diff --git a/.drone.jsonnet b/.drone.jsonnet index bfb1b7c..37769eb 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -109,6 +109,12 @@ local PipelineNotifications(depends_on=[]) = { username: { from_secret: 'matrix_username' }, password: { from_secret: 'matrix_password' }, }, + when: { + status: [ + 'success', + 'failure', + ], + }, }, ], depends_on: depends_on, diff --git a/.drone.yml b/.drone.yml index 0b1d0fe..f2b624e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -102,6 +102,10 @@ steps: template: "Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}" username: from_secret: matrix_username + when: + status: + - success + - failure trigger: ref: @@ -116,6 +120,6 @@ depends_on: --- kind: signature -hmac: 289a88085205c242f268a8388ce5bdd995772990328373a70ae411c2d612ad48 +hmac: f0d15cc962a0fc24405a835ed125ce8af4769c0f4f7458c147b7cf612270c48c ...