fix(docs): fix version discovery and Hugo env in v2 workflow#1375
Merged
hkad98 merged 2 commits intogooddata:masterfrom Feb 27, 2026
Merged
fix(docs): fix version discovery and Hugo env in v2 workflow#1375hkad98 merged 2 commits intogooddata:masterfrom
hkad98 merged 2 commits intogooddata:masterfrom
Conversation
The release branches use three-part versions (e.g. rel/1.60.0) but discover-versions.sh filtered with a two-part regex (major.minor), matching zero branches. Updated the regex to match three-part versions and strip the patch to get the section name (1.60), aligning with the original generate.sh behavior and docs/config/production/params.toml. jira: trivial risk: nonprod
Without explicit HUGO_ENV=production, Hugo loads config/_default/params.toml which only has a single "Latest" entry. The full version list for the version picker lives in config/production/params.toml (maintained by bump_doc_dependencies.py during releases). Hugo defaults to production for builds, but being explicit matches the original hugo-build-versioned-action and avoids any ambiguity. jira: trivial risk: nonprod
no23reason
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
discover-versions.shregex to match three-part branch names (e.g.rel/1.60.0). The previous regex only matched two-part versions (major.minor), resulting in zero branches discovered. Updated to strip the patch component to get the section name (e.g.1.60), matching the originalgenerate.shbehavior anddocs/config/production/params.toml.HUGO_ENV=productionexplicitly in the v2 workflow build step. Without it, Hugo may not loadconfig/production/params.tomlwhich contains the full version list for the version picker. The_defaultconfig only has a single "Latest" entry. Matches the originalhugo-build-versioned-actionbehavior.