From 2b34a82d7657a51d2b52672297804d59e5ad9c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire?= <gregoire.kubler@proton.me> Date: Mon, 15 Jul 2024 18:42:07 +0200 Subject: [PATCH] fix : rules syntax --- .gitlab/ci/rules.gitlab-ci.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml index 4a2cc37..6d9476c 100644 --- a/.gitlab/ci/rules.gitlab-ci.yml +++ b/.gitlab/ci/rules.gitlab-ci.yml @@ -3,15 +3,14 @@ - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TITLE !~ /^Draft:/ when: on_success allow_failure: false - - when: manual - - allow_failure: true + when: manual + allow_failure: true .rules:build:merge_pipeline: rules: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TITLE !~ /^Draft:/ - when: always - - when: manual - - allow_failure: false + when: manual + allow_failure: false # creating release jobs only when merging to main .rules:release: @@ -19,16 +18,15 @@ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_TAG && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - - allow_failure: false + allow_failure: false # deploying created releases # when creating a commit tag & previous release job was successful .rules:deploy: rules: - - when: never - - allow_failure: false - if: $CI_COMMIT_TAG - when: on_success + allow_failure: false + when: on_success -- GitLab