Reusable Workflow: trigger-docs-rebuild
Dispatches a repository_dispatch event to Trickle-Charge/TrickleCharge-Docs to trigger a central documentation site
rebuild across caller repositories
Workflow Path: Trickle-Charge/TrickleCharge-Infra/.github/workflows/trigger-docs-rebuild.yml@main
Secrets
| Secret | Description | Required |
|---|---|---|
DOCS_DISPATCH_TOKEN |
Personal Access Token (PAT) with write access to dispatch events in TrickleCharge-Docs repo |
Yes |
Workflow Pipeline Steps
When called by a downstream repository, this workflow executes a single step:
- Dispatch Rebuild Event: Sends a
POSTrequest to the GitHub API forTrickle-Charge/TrickleCharge-Docs/dispatcheswith an event type ofrebuild-docsusingDOCS_DISPATCH_TOKEN.
Example Usage
Call from an exiting workflow.
Or create a workflow file (e.g., .github/workflows/docs-dispatch.yml) in any consumer repository: