ci: Restrict "success" job to pipelines for MRs
[mesa.git] / .gitlab-ci.yml
index 35593d7909f6881874a8c678f4e4cec4e43d6a2a..3fea645d4140eaa5735e71362401773805f9da74 100644 (file)
@@ -126,7 +126,8 @@ success:
       when: never
     - changes: *all_paths
       when: never
-    - when: on_success
+    - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
+      when: on_success
   variables:
     GIT_STRATEGY: none
   script: