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

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

ci: Add "is forked branch" 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 d8f916a3cd6..cd9e9d5535b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -44,6 +44,9 @@ stages:
 # --------------------------------
 .rules-anchors:
   rules:
+    # Forked project branch
+    - if: &is-forked-branch '$CI_PROJECT_PATH != "mesa/mesa" && 
$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
+      when: manual
     # 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
@@ -1077,7 +1080,7 @@ virgl-gl32-on-gl:
 .test-manual:
   rules:
     - *ignore_scheduled_pipelines
-    - if: '$CI_PROJECT_PATH != "mesa/mesa" && 
$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
+    - if: *is-forked-branch
       changes:
         *all_paths
       when: manual

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

Reply via email to