gitlab-ci: 'pages' needs 'Build documentation' but it has changes:

Fixes this error:

> Unable to create pipeline
>
> 'pages' job needs 'Build documentation' job, but 'Build documentation'
> does not exist in the pipeline. This might be because of the only,
> except, or rules keywords. To need a job that sometimes does not exist
> in the pipeline, use needs:optional.
This commit is contained in:
Hans-Christoph Steiner 2025-06-19 11:13:08 +02:00
parent 51b55963a5
commit f4f1c003a6

View file

@ -734,7 +734,9 @@ pages:
artifacts: artifacts:
paths: paths:
- public - public
needs: ["Build documentation"] needs:
- job: "Build documentation"
optional: true
rules: rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # only publish pages on default (master) branch - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # only publish pages on default (master) branch