File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,22 @@ criteria:
1111 trigger.body.payload.vcs_url :
1212 type : equals
1313 pattern : " https://github.com/StackStorm/st2"
14+ # branch not starting with 'master' or 'vX.Y'
15+ trigger.body.payload.branch :
16+ type : regex
17+ pattern : " ^(?!master|v[0-9]+\\ .[0-9]+).*$"
1418 trigger.body.payload.has_artifacts :
1519 type : equals
1620 pattern : true
21+ trigger.body.payload.build_parameters :
22+ type : exists
23+ pattern : CIRCLE_JOB
24+ # limit to 'packages' sub-task in CircleCI workflow
25+ trigger.body.payload.build_parameters.CIRCLE_JOB :
26+ type : equals
27+ pattern : packages
28+ # See bug: https://discuss.circleci.com/t/wrong-data-in-webhook-payload-for-workflows/15076
29+ # when 'pull_requests' payload is included even for commits outside of PRs
1730 trigger.body.payload.pull_requests[0] :
1831 type : contains
1932 pattern : url
Original file line number Diff line number Diff line change @@ -11,9 +11,22 @@ criteria:
1111 trigger.body.payload.vcs_url :
1212 type : equals
1313 pattern : " https://github.com/StackStorm/st2"
14+ # branch not starting with 'master' or 'vX.Y'
15+ trigger.body.payload.branch :
16+ type : regex
17+ pattern : " ^(?!master|v[0-9]+\\ .[0-9]+).*$"
1418 trigger.body.payload.has_artifacts :
1519 type : equals
1620 pattern : true
21+ trigger.body.payload.build_parameters :
22+ type : exists
23+ pattern : CIRCLE_JOB
24+ # limit to 'packages' sub-task in CircleCI workflow
25+ trigger.body.payload.build_parameters.CIRCLE_JOB :
26+ type : equals
27+ pattern : packages
28+ # See bug: https://discuss.circleci.com/t/wrong-data-in-webhook-payload-for-workflows/15076
29+ # when 'pull_requests' payload is included even for commits outside of PRs
1730 trigger.body.payload.pull_requests[0] :
1831 type : contains
1932 pattern : url
You can’t perform that action at this time.
0 commit comments