I want to start a pipeline only on specific branch after successful commit.
I wrote this:
workflow: rules: - if: $CI_MERGE_REQUEST_APPROVED .... stagename: stage: stage only: - branchname - merge_requests except: - master
When I approve and make merge - nothing is happening.
If i remove the workflow - the pipeline is starting even when i make a push in master.
If i add the rule in the pipeline below except for example, i got - invalid yaml.
please let me know if it is possible and how to run a pipeline after merge in a specific branch.