Skip to content

Commit 4ae45f1

Browse files
authored
[ISV-5191] Release pipeline can be triggered by label only when PR is merged (#723)
1 parent ca5072a commit 4ae45f1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ansible/roles/operator-pipeline/tasks/community-pipeline-event-listener.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
body.action == "labeled"
122122
&& body.label.name == "pipeline/trigger-release"
123123
&& body.pull_request.base.ref == "{{ branch }}"
124+
&& body.pull_request.merged == true
124125
)
125126
bindings:
126127
- ref: community-operator-release-pipeline-trigger-binding

ansible/roles/operator-pipeline/tasks/operator-pipeline-event-listener.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
body.action == "labeled"
109109
&& body.label.name == "pipeline/trigger-release"
110110
&& body.pull_request.base.ref == "{{ branch }}"
111+
&& body.pull_request.merged == true
111112
)
112113
bindings:
113114
- ref: operator-release-pipeline-trigger-binding

0 commit comments

Comments
 (0)