ci: Add "is for Marge Bot" 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>
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c4cc688..41f1eb9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -44,6 +44,9 @@
# --------------------------------
.rules-anchors:
rules:
+ # For Marge Bot
+ - if: &is-for-marge '$GITLAB_USER_LOGIN == "marge-bot"'
+ when: never
# Forked project branch
- if: &is-forked-branch '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
when: manual
@@ -149,7 +152,7 @@
- *ignore_scheduled_pipelines
- if: *is-post-merge
when: never
- - if: '$GITLAB_USER_LOGIN == "marge-bot"'
+ - if: *is-for-marge
changes: *docs-or-ci
when: never
- changes: *all_paths