Repository navigation
ci: add docs-dispatch workflow (composer pings) - #2
Merged
Merged
Conversation
infinityplusone
force-pushed
the
ci/docs-dispatch
branch
2 times, most recently
from
May 15, 2026 19:24
413ad93 to
c9db378
Compare
Pings makegov/docs (the editorial composer) via repository_dispatch when docs/, README.md, CHANGELOG.md, or crates/*/src/** changes on main. docs.makegov.com rebuilds the Rust SDK pages from this repo's docs/. Requires the DOCS_DISPATCH_TOKEN repo secret with contents:write on makegov/docs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
… version The docs composer consumes docs/, README.md and CHANGELOG.md, so a source-only change no longer pings it. Bumps actions/checkout to v6 to match tango-python. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
vdavez
force-pushed
the
ci/docs-dispatch
branch
from
October 19, 2026 18:36
59713b0 to
8a01201
Compare
Step outputs and event fields now reach the scripts as environment variables instead of being expanded into the script text, so a file name can no longer inject shell. Change detection diffs `before..sha` instead of only the last commit, with full history checked out, so a multi-commit push no longer misses an earlier docs change. A manual run, a new branch or a force-push whose `before` is gone dispatches unconditionally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without a usable `before` (an all-zero one, one missing from the clone after a force-push, or a manual run), the earlier docs changes in the push can't be seen, so diffing only the tip commit could skip a needed rebuild. That branch now sets `force=true` and always dispatches, reporting the tip commit's paths. The workflow now matches the other SDK repos' copy apart from its header and checkout version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Summary
.github/workflows/docs-dispatch.yml: on a push tomainthat changesdocs/,README.mdorCHANGELOG.md, it sends arepository_dispatchso the docs site at docs.makegov.com rebuilds.actions/checkout@v6as the workflow the Python and Node SDKs run.env:as quoted shell variables, never as${{ }}expanded into the script text, so a file name can't inject shell.github.event.before..github.sha, full history checked out) instead of only the last commit, so a multi-commit push can't miss an earlier docs change.workflow_dispatch, a new branch (all-zerobefore) or a force-push whosebeforeis no longer in the history dispatches unconditionally, reporting the last commit's paths.Before merging
DOCS_DISPATCH_TOKENrepository secret (a token withcontents:writeon the docs repository). Without it the dispatch step fails on every docs change.DOCS_TARGET_REPOrepository variable to override the dispatch target.🤖 Generated with Claude Code
~ Mark