From: Michel Dänzer Date: Tue, 14 Jul 2020 09:12:19 +0000 (+0200) Subject: gitlab-ci: Fix "triggered by Marge for a merge request" rule X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbdb87c678cff96d41f1eb07f8161e4068df392e;p=mesa.git gitlab-ci: Fix "triggered by Marge for a merge request" rule The commit below changed the rule such that it accidentally also applied to the non-MR pipelines created by Marge, resulting in Marge triggering twice as many jobs as necessary. Fixes: 549b4a3dd4ab "gitlab-ci: Automatically run pipelines for Marge Bot pre-merge only" Acked-by: Daniel Stone Part-of: --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 82a2abf939a..e769069370d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -173,7 +173,7 @@ success: when: on_success # Run pipeline by default if it was triggered by Marge Bot, is for a # merge request, and any files affecting the pipeline were changed - - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_PROJECT_PATH != "mesa/mesa"' + - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME' changes: *all_paths when: on_success