Validation before merge request

Dear all,

I’ve a request to add a stage where I create a merge request to branch “CPQ” from any feature branch pipeline that will run to fullcopy sandbox with validation from feature branch.

I have something like that in my gitlab-ci.yml

######################################################

Validation with tests “FEATURE” branch to FULLCOPY

######################################################

FULLCOPY VALIDATION (FEATURE):
stage: FULLCOPY
rules:
- if: ‘$CI_PIPELINE_SOURCE == “merge_request_event” && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == “cpq”’
script:
- echo $FULLCOPY_SANDBOX> ./sfdxAuthUrl.txt
- sfdx force:auth:sfdxurl:store -f ./sfdxAuthUrl.txt -a FULLCOPY -d
- sfdx force:source:deploy -p “force-app” -c -u FULLCOPY -l RunLocalTests --verbose

but it doesn’t work because when I create a branch locally and push it to origin pipeline is running. I would like to only run pipeline during the merge request. How can I achieve this ?