ci: migrate docs-sync to reusable workflow in dojoengine/book#2572
Merged
ci: migrate docs-sync to reusable workflow in dojoengine/book#2572
Conversation
Replaces the in-tree docs-sync workflow with a minimal stub that invokes the shared reusable workflow hosted at dojoengine/book/.github/workflows/docs-sync.yml@main. Cross-org reuse works because dojoengine/book is public; controller forwards its own CREATE_PR_TOKEN and ANTHROPIC_API_KEY via 'secrets: inherit'. All prompt rules and pipeline steps are now shared across dojoengine and cartridge-gg source repos. Per-repo variation (diff globs, DOCS_PATTERNS, canonical docs path, target docs repo) is passed as workflow inputs.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Apr 24, 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.
Replaces the in-tree docs-sync workflow with a minimal stub that invokes the shared reusable workflow hosted in
dojoengine/book.Why
The docs-sync logic has been duplicated across 10+ source repos (dojo, katana, torii, torii-core, saya, dojo.js, dojo.c, dojo.unity, dojo.unreal, dojo.bevy, and this one). Any improvement to prompt rules, diff handling, or PR creation had to be applied in 11 places. This migration consolidates the pipeline into a single reusable workflow (
dojoengine/book/.github/workflows/docs-sync.yml) and leaves each caller with a ~30-line stub.Cross-org reuse works
dojoengine/bookis public, socartridge-gg/controllercan invokeuses: dojoengine/book/.github/workflows/docs-sync.yml@mainwith no access-setting changes. Controller keeps its ownCREATE_PR_TOKENandANTHROPIC_API_KEY; they're forwarded to the reusable workflow viasecrets: inherit.What changed
.github/workflows/docs-sync.ymlshrinks from ~180 lines to ~20.DOCS_PATTERNSfilter,claude-code-actioninvocation, docs-PR branch/commit/auto-merge) moves to the reusable workflow. Behavior is unchanged.with::target-docs-repo: cartridge-gg/docssource-repo-slug: cartridge-gg/controllerdiff-globs,docs-patterns,canonical-desc,docs-structure-descMerge order
Requires
dojoengine/book#504to land first — that PR adds the reusable workflow this stub references. Merging this before that means theuses:ref won't resolve at trigger time.Related
Companion stubs across the dojoengine ecosystem: