ci: Add "is forked branch" YAML anchor

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6566>
This commit is contained in:
Michel Dänzer
2020-09-08 17:52:24 +02:00
committed by Marge Bot
parent 24f5329e2a
commit 22a7c252dc

View File

@@ -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