-if:$MIRROR_ACCESS_TOKEN# Don't run in the mirror update pipeline (only then MIRROR_ACCESS_TOKEN is defined)
when:never
-if:$CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != "main"# needed here as well for build jobs
when:never
-if:$CI_PIPELINE_SOURCE == 'schedule'# Don't run in any scheduled pipelines by default (use schedule templates below to enable again for certain conditions)
when:never
-when:on_success
@@ -130,7 +132,7 @@ stages:
.rules-merge-request:
extends:.rules-basis
rules:
-if:$CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"# Runs for merge requests (to main only)