ci: Use "when: always" for pages job
authorMichel Dänzer <mdaenzer@redhat.com>
Wed, 1 Jul 2020 15:41:06 +0000 (17:41 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 2 Jul 2020 16:25:25 +0000 (18:25 +0200)
"when: on_success" meant that that the job wouldn't run automatically
until all jobs of all earlier stages passed, and would be skipped if
any of them failed. But we need to always run this job if any
documentation files were modified.

Fixes: 8e2cb8ef276b "gitlab-ci: Extend .ci-run-policy template for docs
                     jobs"

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5711>

.gitlab-ci.yml

index f3af0fe..1df576d 100644 (file)
@@ -43,7 +43,7 @@ pages:
       changes: &docs-or-ci
       - docs/**/*
       - .gitlab-ci.yml
-      when: on_success
+      when: always
     # Other cases default to never
 
 test-docs: