diff --git a/.drone.jsonnet b/.drone.jsonnet
index a713487..95c8e79 100644
--- a/.drone.jsonnet
+++ b/.drone.jsonnet
@@ -122,6 +122,9 @@ local PipelineNotifications(depends_on=[]) = {
username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' },
},
+ when: {
+ status: ['success', 'failure'],
+ },
},
],
trigger: {
diff --git a/.drone.yml b/.drone.yml
index 773e613..0c0a413 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -117,6 +117,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:
@@ -131,6 +135,6 @@ depends_on:
---
kind: signature
-hmac: 3c6e41044e4eb72de9b2f0dc5773074e5fc64ed979c06fc13b2287d1f1b7cb15
+hmac: 824a75171bdbd04a8fd94e0d3e5af270025f9be0b42e225db1c34cdbfe386ae8
...