From fbf06e91ea58dfa80959738a6c2d8b731e2e4622 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Mon, 26 Oct 2020 22:35:27 +0100 Subject: [PATCH] fix chat conditions --- .drone.star | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.drone.star b/.drone.star index 4d5ac0862f..fc03111b44 100644 --- a/.drone.star +++ b/.drone.star @@ -1350,8 +1350,13 @@ def notify(ctx): 'from_secret': config['rocketchat']['from_secret'] }, 'channel': config['rocketchat']['channel'] - } - } + }, + 'when': { + 'status': [ + 'failure', + ], + }, + }, ], 'depends_on': [], 'trigger': { @@ -1360,9 +1365,6 @@ def notify(ctx): 'refs/heads/release*', 'refs/tags/**', ], - 'status': [ - 'failure', - ] } }