ci: only build docs if any docs changed
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 22 Jun 2020 09:10:24 +0000 (11:10 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 1 Jul 2020 14:31:38 +0000 (14:31 +0000)
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>

.gitlab-ci.yml

index 84d06860866d195358ac26a019fbdfefe4e51279..ca9a22358c3e07e5558afe421b091388476c3a80 100644 (file)
@@ -35,7 +35,11 @@ pages:
     paths:
     - public
   only:
     paths:
     - public
   only:
-  - master@mesa/mesa
+    refs:
+    - master@mesa/mesa
+    changes:
+    - docs/**/*
+    - .gitlab-ci.yml
 
 # When to automatically run the CI
 .ci-run-policy:
 
 # When to automatically run the CI
 .ci-run-policy: