i am trying to set up my gitlab pipline so that the pipline will not start until the merge request is accepted. when i try to define the rules it will start when the merge request is made but not when it is approved.
my try:
rules:
- if: '$CI_COMMIT_REF_NAME != "master" && $CI_PIPELINE_SOURCE == "merge_request_event"'
runs before ...
rules:
- if: '$CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "merge_request_event"'
runs never ...
the pipline must not start on a push but only when a mergerequst on master has been approved. i can't imagine that it can't work.