From 744e65ec1fc56fbd8ba0b9f70205eff1f24e7c7a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 24 Sep 2020 20:33:35 +0200 Subject: [PATCH] fix notification --- .drone.jsonnet | 4 ++++ .drone.yml | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 592fea5..1297715 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -166,6 +166,7 @@ local PipelineBuildContainer(arch='amd64') = { pull: 'always', commands: [ 'python setup.py bdist_wheel', + 'ls -l dist/git_batch-*.whl', ], }, { @@ -303,6 +304,9 @@ local PipelineNotifications = { username: { from_secret: 'matrix_username' }, password: { from_secret: 'matrix_password' }, }, + when: { + status: ['success', 'failure'], + }, }, ], depends_on: [ diff --git a/.drone.yml b/.drone.yml index bb28f63..3e5d207 100644 --- a/.drone.yml +++ b/.drone.yml @@ -191,6 +191,7 @@ steps: image: python:3.8 commands: - python setup.py bdist_wheel + - ls -l dist/git_batch-*.whl - name: dryrun pull: always @@ -267,6 +268,7 @@ steps: image: python:3.8 commands: - python setup.py bdist_wheel + - ls -l dist/git_batch-*.whl - name: dryrun pull: always @@ -343,6 +345,7 @@ steps: image: python:3.8 commands: - python setup.py bdist_wheel + - ls -l dist/git_batch-*.whl - name: dryrun pull: always @@ -479,6 +482,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: @@ -496,6 +503,6 @@ depends_on: --- kind: signature -hmac: b460d6f3e540ccfe73ddca52125517a858429b3de7e7354065cb4130b4238358 +hmac: 6499b23b50c851323da8a438c6a9ea83d30b499c6b0c4eef62fea5150ecad7cb ...