From: Michel Dänzer Date: Wed, 15 Jul 2020 08:59:54 +0000 (+0200) Subject: gitlab-ci: Only trigger test-docs job automatically for MRs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f8656401b63581346b4c282896df1d6548e4ad7;p=mesa.git gitlab-ci: Only trigger test-docs job automatically for MRs Follow-up to https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5898 . Reviewed-by: Tomeu Vizoso Acked-by: Daniel Stone Part-of: --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 45fac9f2905..594cadb559f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -69,7 +69,7 @@ test-docs: - *ignore_scheduled_pipelines - if: '$CI_PROJECT_NAMESPACE == "mesa"' when: never - - if: '$GITLAB_USER_LOGIN == "marge-bot"' + - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME' changes: *docs-or-ci when: on_success - changes: *docs-or-ci