From 3f8656401b63581346b4c282896df1d6548e4ad7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Wed, 15 Jul 2020 10:59:54 +0200 Subject: [PATCH] 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: --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2