[CI] Auto-update versions in localized content files#9460
Merged
theletterf merged 1 commit intoopen-telemetry:mainfrom Mar 20, 2026
Merged
Conversation
Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds locale-awareness to the existing version auto-update automation so that localized content/*/ pages stay in sync with the version frontmatter variables maintained in the English sources under content/en/.
Changes:
- Introduces
update_locale_files()to discover locale equivalents for updated English content files and update matching version variables. - Invokes locale updates after each
process_filerun, skipping missing locale files or files without the target variable.
theletterf
approved these changes
Mar 20, 2026
intuibase
pushed a commit
to intuibase/opentelemetry.io
that referenced
this pull request
Apr 9, 2026
…9460) Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
tiffany76
pushed a commit
to tiffany76/opentelemetry.io
that referenced
this pull request
Apr 13, 2026
…9460) Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
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.
The version auto-update script (
scripts/auto-update/version-in-file.sh) only updates English files listed inall-versions.sh. Localized files (ja, zh, etc.) that have the same frontmatter version variables drift behind over time.This PR adds an
update_locale_files()function toversion-in-file.shthat, after updating each English file undercontent/en/, automatically discovers and updates locale equivalents via acontent/*/glob. It silently skips locales where the file doesn't exist or lacks the relevant variable.Footnotes
Yes, I can answer maintainer questions about the content of this PR, without using AI. ↩