Module: Mesa
Branch: master
Commit: 24f5329e2a55733cc3140b21fb71a18a319b83d7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=24f5329e2a55733cc3140b21fb71a18a319b83d7

Author: Michel Dänzer <[email protected]>
Date:   Tue Sep  8 17:30:49 2020 +0200

ci: Add "is forked branch or pre-merge pipeline" YAML anchor

Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6566>

---

 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index de0b56b5352..d8f916a3cd6 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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to