Skip to content
Snippets Groups Projects
Unverified Commit 7754354c authored by Ritesh Raj Sarraf's avatar Ritesh Raj Sarraf
Browse files

ci: Fix publishing to pages from default branch


Commit 728c9142 "Use CI_DEFAULT_BRANCH as the default branch" actually
broke the publishing via GitLab pages from the default branch since
the `only: [ ${CI_DEFAULT_BRANCH} ]` condition was not really expanding
the variable and it was considering `${CI_DEFAULT_BRANCH}` as a literal
branch name.

This means that the `test-pdf` job got always instantiated while `pages`
never was, regardless of the branch they where running on.

By switching to `rules:` we can properly implement automatic default
branch detection and fix the regression.

Signed-off-by: default avatarRitesh Raj Sarraf <ritesh.sarraf@collabora.com>
parent 7497bfe5
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment