ci: Don't create test-docs job if the pages one exists in the pipeline
authorMichel Dänzer <mdaenzer@redhat.com>
Wed, 2 Sep 2020 16:39:52 +0000 (18:39 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Sep 2020 15:13:04 +0000 (15:13 +0000)
It's redundant in that case.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6566>

.gitlab-ci.yml

index 15eb5c8..119d99d 100644 (file)
@@ -100,6 +100,9 @@ test-docs:
   stage: container+docs
   rules:
     - *ignore_scheduled_pipelines
+    - if: *is-main-master
+      changes: *docs-or-ci
+      when: never
     - if: *is-pre-merge-for-marge
       changes: *docs-or-ci
       when: on_success