From: Michel Dänzer Date: Tue, 8 Sep 2020 15:30:49 +0000 (+0200) Subject: ci: Add "is forked branch or pre-merge pipeline" YAML anchor X-Git-Tag: upstream/21.0.0~5238 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24f5329e2a55733cc3140b21fb71a18a319b83d7;p=platform%2Fupstream%2Fmesa.git ci: Add "is forked branch or pre-merge pipeline" YAML anchor Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de0b56b..d8f916a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,6 +44,9 @@ stages: # -------------------------------- .rules-anchors: rules: + # Forked project branch / pre-merge pipeline + - if: &is-forked-branch-or-pre-merge '$CI_PROJECT_PATH != "mesa/mesa" || $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME' + when: manual # Pipeline runs for the master branch of the main project - if: &is-main-master '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_REF_NAME == "master"' when: always @@ -91,7 +94,7 @@ test-docs: - if: *is-post-merge-not-for-marge changes: *docs-or-ci when: on_success - - if: '$CI_PROJECT_PATH != "mesa/mesa" || $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME' + - if: *is-forked-branch-or-pre-merge changes: *docs-or-ci when: manual # Other cases default to never