Repository navigation
fix(ci): publish stable schemas to SchemaStore from the docs workflow - #5019
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR updates the .github/workflows/schemastore.yml automation that syncs GitVersion’s JSON schema to SchemaStore, addressing failures seen in the first live run: git push authentication and overly-large catalog.json diffs.
Changes:
- Runs
gh auth setup-gitso subsequentgit pushusesGH_TOKEN-backed credentials. - Replaces the
jq-basedcatalog.jsonupdate with an inline Python text patch to avoid reformatting the entire file. - Keeps the
jqedit for the smallgitversion.json$refupdate.
921207f to
8484656
Compare
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
58e95ab to
83d29e5
Compare
|
83d29e5 to
946c328
Compare
946c328 to
037631c
Compare
037631c to
f77a6a7
Compare
|
|
This pull request is merged. |
|
Thank you @arturcic for your contribution! |
Merge pull request #5019 from GitTools/fix/schemastore-auth-and-diff fix(ci): publish stable schemas to SchemaStore from the docs workflow



Revive the SchemaStore publisher as part of successful stable documentation publication.
docs.ymlnow calls a reusableschemastore.ymljob after publishing, instead of relying on agh-pagespush or copying workflow files into the website branch. This avoids theGITHUB_TOKENpush-trigger restriction.The publisher reads stable release metadata and configuration schemas from the published docs checkout, checks what SchemaStore actually lacks, and waits for matching public schema contents before writing anything. It uses the same 1Password-backed GitTools bot release token as Homebrew/winget, creating
gittools-bot/schemastorewhen absent and opening the upstream PR from that fork.The catalog edit stays limited to GitVersion's default URL/version map and wrapper reference. Numeric comparisons preserve newer defaults when backfilling older versions. Existing version entries are repaired rather than duplicated. Reruns reuse a matching bot PR or recover a pushed branch after PR creation failure; changed branches, closed PRs, unique fork commits and git failures require attention rather than forced updates.
Validation:
PublishDocs.cs.Operational follow-up: merge this PR and publish docs to exercise the real bot-fork/PR path. Manual workflow recovery can target a stable published edition. The existing 6.8 schema URL currently returns 404; restoring that legacy hosted schema is separate from this publisher update. Older docs editions without a hosted schema do not block the available 7.0 update; a missing newest stable or explicitly requested schema is an error.
Updated by Codex on behalf of Artur (@arturcic).