ci: notify the docs site on docs changes (repository_dispatch)#65
Open
daedmonds wants to merge 1 commit into
Open
ci: notify the docs site on docs changes (repository_dispatch)#65daedmonds wants to merge 1 commit into
daedmonds wants to merge 1 commit into
Conversation
On a push to main touching docs/ or assets/, send a repository_dispatch (type
docs-updated, payload {sha, ref}) to the marketing-site repo, whose on-prem self-hosted
runner rebuilds + republishes /docs pinned to this commit — instant instead of waiting
for its hourly schedule.
Needs a repo secret DOCS_DISPATCH_TOKEN (fine-grained PAT / GitHub App scoped to the
marketing-site repo with Contents: write — the minimum to create a repository_dispatch).
Fail-open: if the secret is unset the job is a no-op (schedule covers it), so pg-cdc CI
never breaks. Payload built via jq, never interpolated into the shell.
Co-Authored-By: Claude Opus 4.8 (1M context) <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.
On a push to
maintouchingdocs/orassets/, sends arepository_dispatch(typedocs-updated, payload{sha, ref}) to the marketing-site repo — its on-prem self-hosted "Publish documentation" runner then rebuilds + republishes/docspinned to this commit. Instant instead of waiting up to an hour for the docs site's schedule.Requires a repo secret
DOCS_DISPATCH_TOKEN: a fine-grained PAT (machine account) or GitHub App token scoped todataalgebra-engineering/burnside-project-marketing-sitewith Contents: Read and write (the minimum that authorizes a repository_dispatch).Fail-open: if the secret is unset the job is a clean no-op (the hourly schedule still catches the change), so pg-cdc CI never breaks on a missing secret. Payload built with
jq— never interpolated into the shell.🤖 Generated with Claude Code