diff --git a/rules/rules.yml b/rules/rules.yml index 4a9fb79..5a48f89 100644 --- a/rules/rules.yml +++ b/rules/rules.yml @@ -1,7 +1,7 @@ .default_rules: rules: - - if: $CI_PIPELINE_SOURCE == "push" && $CI_PIPELINE_SOURCE == $CI_DEFAULT_BRANCH - - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ '/^release/' + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + - if: $CI_COMMIT_BRANCH =~ '/^release/' .sonarqube_rules: rules: @@ -18,8 +18,8 @@ .default_mr_rules: rules: - if: $CI_MERGE_REQUEST_IID - - if: $CI_PIPELINE_SOURCE == "push" && $CI_PIPELINE_SOURCE == $CI_DEFAULT_BRANCH - - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ '/^release/' + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + - if: $CI_COMMIT_BRANCH =~ '/^release/' .mr_only_rules: rules: