Skip to content

Notify the docs repo when a release publishes - #165

Open
lai-bianca wants to merge 1 commit into
mainfrom
notify-docs-on-release
Open

Notify the docs repo when a release publishes#165
lai-bianca wants to merge 1 commit into
mainfrom
notify-docs-on-release

Conversation

@lai-bianca

Copy link
Copy Markdown
Collaborator

Adds a one-step workflow that sends a repository_dispatch (cli-released, payload = release tag) to landing-ai/docs whenever a release publishes. The docs repo's update-cli-reference workflow uses it to regenerate the hosted CLI reference from this repo's docs/reference/help.json at the release tag, so the published reference always matches the shipped binary.

Setup required before this does anything: a DOCS_DISPATCH_TOKEN actions secret in this repo (fine-grained PAT scoped to landing-ai/docs, Contents: read/write). Until then, and if the token ever expires, nothing breaks: the docs repo also polls this repo's latest release daily, so the dispatch only removes latency.

🤖 Generated with Claude Code

One repository_dispatch call so landing-ai/docs can regenerate its
hosted CLI reference from this repo's help.json at the release tag.
Requires the DOCS_DISPATCH_TOKEN secret (see workflow comment); the
docs repo also polls daily, so this failing only adds latency.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant