Skip to content

feat: add GitHub Action to trigger docs ingestion workflow#524

Draft
justinwlin wants to merge 7 commits intomainfrom
feat/add-docs-ingestion-workflow
Draft

feat: add GitHub Action to trigger docs ingestion workflow#524
justinwlin wants to merge 7 commits intomainfrom
feat/add-docs-ingestion-workflow

Conversation

@justinwlin
Copy link
Collaborator

@justinwlin justinwlin commented Feb 4, 2026

Summary

Adds a GitHub Actions workflow that automatically triggers the ingestDocsWorkflow on the Runpod Assistant when documentation files are updated.

  • Triggers on push to main when .mdx, .md, or docs.json files change
  • Validates configuration on PRs before merge
  • Also supports manual dispatch via Actions UI
  • Uses Mastra's two-step workflow API (create-run → start)

Configuration Required

Set these in repo settings (Settings → Secrets and variables → Actions):

Repository Secrets:

  • RUNPOD_ASSISTANT_API_URL - e.g., https://runpod-assistant.mastra.cloud
  • RUNPOD_ASSISTANT_API_KEY - API key for authenticating with the assistant

Triggers ingestDocsWorkflow on Mastra when MDX/MD files are pushed to main.
Uses RUNPOD_ASSISTANT_BASE_URL and RUNPOD_ASSISTANT_API_KEY for configuration.
Validates on PR open:
- RUNPOD_ASSISTANT_BASE_URL variable is configured
- RUNPOD_ASSISTANT_API_KEY secret is configured
- Authentication works
- ingestDocsWorkflow exists on the target server

Prevents merge failures by catching config issues early.
- Move all bash logic to .github/scripts/trigger-ingestion.sh
- Workflow file is now simple and declarative
- Script is readable, testable locally, and well-documented
- Added VALIDATE_ONLY mode for PR checks
Use consistent naming with main-ui/console.
Copy link
Member

@TimPietruskyRunPod TimPietruskyRunPod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! tysm

@justinwlin justinwlin marked this pull request as draft February 5, 2026 19:55
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.

2 participants