For an overview of all available workflows, see the main README.
Automatically update documentation on each push to main
The Update Documentation workflow runs on each push to main to analyze changes and create pull requests with documentation updates. It defaults to using Astro Starlight for documentation generation.
# Install the 'gh aw' extension
gh extension install github/gh-aw
# Add the workflow to your repository
gh aw add-wizard githubnext/agentics/update-docsThis walks you through adding the workflow to your repository.
graph LR
A[Push to Main] --> B[Analyze Changes]
B --> C[Generate Docs]
C --> D{Updates Needed?}
D -->|Yes| E[Create Doc Branch]
E --> F[Create PR]
D -->|No| G[Report: Docs Current]
The workflow may search for best practices, examples, or technical references online to improve documentation.
This workflow requires no configuration and works out of the box. You can customize documentation frameworks, structure, themes, and directories.
After editing run gh aw compile to update the workflow and commit all changes to the default branch.
You can start a run immediately:
gh aw run update-docsTo automatically trigger CI checks on PRs created by this workflow, configure an additional repository secret GH_AW_CI_TRIGGER_TOKEN. See the triggering CI documentation for setup instructions.
- Review documentation update PRs for accuracy and clarity
- Validate documentation changes reflect actual code behavior
- Test documentation examples and instructions