CI: only run on master branch

This commit is contained in:
Mis012 2025-02-26 15:42:09 +01:00
parent 23feff7bbc
commit b35ecc7918

View file

@ -4,7 +4,7 @@ stages:
build_trigger_job: build_trigger_job:
rules: rules:
- if: $CI_PIPELINE_SOURCE != "merge_request_event" - if: ($CI_PIPELINE_SOURCE != "merge_request_event") && ($CI_COMMIT_BRANCH == 'master')
stage: build stage: build
variables: variables:
# the build script assumes it's run from a MR context # the build script assumes it's run from a MR context
@ -20,7 +20,7 @@ build_trigger_job:
cts_trigger_job: cts_trigger_job:
rules: rules:
- if: $CI_PIPELINE_SOURCE != "merge_request_event" - if: ($CI_PIPELINE_SOURCE != "merge_request_event") && ($CI_COMMIT_BRANCH == 'master')
stage: cts stage: cts
trigger: trigger:
project: android_translation_layer/android_translation_layer.gitlab.io project: android_translation_layer/android_translation_layer.gitlab.io