diff options
author | Andrew Lewis <nerf@judo.za.org> | 2023-09-29 22:13:17 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2023-09-29 22:19:29 +0200 |
commit | 23e831d4bb81ef2b1ef415bcbd17856fd72d210e (patch) | |
tree | 697cdc59f6827da87a1422956da57692f1056f94 | |
parent | a166379c3f435dc642cd089a5a00111f343b12e0 (diff) | |
download | rspamd-23e831d4bb81ef2b1ef415bcbd17856fd72d210e.tar.gz rspamd-23e831d4bb81ef2b1ef415bcbd17856fd72d210e.zip |
[Test] Skip notification on pull requests
-rw-r--r-- | .drone.jsonnet | 14 | ||||
-rw-r--r-- | .drone.yml | 19 |
2 files changed, 20 insertions, 13 deletions
diff --git a/.drone.jsonnet b/.drone.jsonnet index 0f453343c..694a63ef2 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -3,14 +3,15 @@ local docker_pipeline = { type: 'docker', }; +local default_trigger_events_ex_pr = [ + 'push', + 'tag', + 'custom', +]; + local default_trigger = { trigger: { - event: [ - 'push', - 'tag', - 'pull_request', - 'custom', - ], + event: default_trigger_events_ex_pr + ['pull_request'], }, }; @@ -66,6 +67,7 @@ local notify_pipeline = { }, ], trigger: { + event: default_trigger_events_ex_pr, status: [ 'failure', ], diff --git a/.drone.yml b/.drone.yml index 4ec75e663..74231368a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -203,8 +203,8 @@ "event": [ "push", "tag", - "pull_request", - "custom" + "custom", + "pull_request" ] }, "type": "docker", @@ -420,8 +420,8 @@ "event": [ "push", "tag", - "pull_request", - "custom" + "custom", + "pull_request" ] }, "type": "docker", @@ -505,8 +505,8 @@ "event": [ "push", "tag", - "pull_request", - "custom" + "custom", + "pull_request" ] }, "type": "docker" @@ -540,6 +540,11 @@ } ], "trigger": { + "event": [ + "push", + "tag", + "custom" + ], "status": [ "failure" ] @@ -548,7 +553,7 @@ } --- { - "hmac": "0000000000000000000000000000000000000000000000000000000000000000", + "hmac": "3f01ceb14c7dd3ba2f5343fc52216843f72212e1cb25f944c2366d57e78d2b79", "kind": "signature" } ... |