Skip to content

Commit

Permalink
[Test] Skip notification on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
fatalbanana committed Sep 29, 2023
1 parent a166379 commit 23e831d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
14 changes: 8 additions & 6 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
};

Expand Down Expand Up @@ -66,6 +67,7 @@ local notify_pipeline = {
},
],
trigger: {
event: default_trigger_events_ex_pr,
status: [
'failure',
],
Expand Down
19 changes: 12 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@
"event": [
"push",
"tag",
"pull_request",
"custom"
"custom",
"pull_request"
]
},
"type": "docker",
Expand Down Expand Up @@ -420,8 +420,8 @@
"event": [
"push",
"tag",
"pull_request",
"custom"
"custom",
"pull_request"
]
},
"type": "docker",
Expand Down Expand Up @@ -505,8 +505,8 @@
"event": [
"push",
"tag",
"pull_request",
"custom"
"custom",
"pull_request"
]
},
"type": "docker"
Expand Down Expand Up @@ -540,6 +540,11 @@
}
],
"trigger": {
"event": [
"push",
"tag",
"custom"
],
"status": [
"failure"
]
Expand All @@ -548,7 +553,7 @@
}
---
{
"hmac": "0000000000000000000000000000000000000000000000000000000000000000",
"hmac": "3f01ceb14c7dd3ba2f5343fc52216843f72212e1cb25f944c2366d57e78d2b79",
"kind": "signature"
}
...

0 comments on commit 23e831d

Please sign in to comment.