@devries-cameron20 / composio-1 / commits / 48ff15164
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

feat(docs): add workflow to update data on Apollo deploy

Adds a new workflow that triggers on `apollo-production-deploy` event to automatically update the new docs system with fresh data: - Regenerates toolkits.json from Composio API (Hermes data) - Fetches updated OpenAPI spec (Apollo data) - Creates a PR with the changes This replaces the functionality previously handled by the fern publish_docs.yml workflow for the new Fumadocs-based docs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 28, 2026 at 12:02 UTC 48ff15164dca3cd4cda4d99b8bc293d0d0d0a628
1 file changed +88
.github/workflows/docs-update-data.yml new
+88
@@ -0,0 +1,88 @@
1 +name: Docs - Update Data
2 +
3 +on:
4 + repository_dispatch:
5 + types: [apollo-production-deploy]
6 + workflow_dispatch:
7 + inputs:
8 + create_pr:
9 + description: 'Create PR instead of direct commit'
10 + required: false
11 + default: 'true'
12 + type: choice
13 + options:
14 + - 'true'
15 + - 'false'
16 +
17 +jobs:
18 + update-data:
19 + runs-on: ubuntu-latest
20 + defaults:
21 + run:
22 + working-directory: ./docs
23 + permissions:
24 + contents: write
25 + pull-requests: write
26 + env:
27 + COMPOSIO_API_KEY: ${{ secrets.COMPOSIO_API_KEY }}
28 +
29 + steps:
30 + - name: Checkout repository
31 + uses: actions/checkout@v6
32 +
33 + - name: Log trigger source
34 + run: |
35 + echo "Workflow triggered by: ${{ github.event_name }}"
36 + if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
37 + echo "Triggered by Apollo production deployment"
38 + echo "Hermes commit: ${{ github.event.client_payload.hermes_commit }}"
39 + echo "Timestamp: ${{ github.event.client_payload.timestamp }}"
40 + fi
41 +
42 + - name: Setup Bun
43 + uses: oven-sh/setup-bun@v2
44 + with:
45 + bun-version-file: '.bun-version'
46 +
47 + - name: Install dependencies
48 + run: bun install
49 +
50 + - name: Generate toolkits data
51 + run: bun run generate:toolkits
52 +
53 + - name: Fetch OpenAPI spec
54 + run: bun run scripts/fetch-openapi.mjs
55 +
56 + - name: Check for changes
57 + id: changes
58 + run: |
59 + cd ..
60 + if git diff --quiet docs/public/data/ docs/public/openapi.json 2>/dev/null; then
61 + echo "has_changes=false" >> $GITHUB_OUTPUT
62 + echo "No changes detected"
63 + else
64 + echo "has_changes=true" >> $GITHUB_OUTPUT
65 + echo "Changes detected:"
66 + git diff --stat docs/public/data/ docs/public/openapi.json 2>/dev/null || true
67 + fi
68 +
69 + - name: Create Pull Request
70 + if: steps.changes.outputs.has_changes == 'true' && (github.event_name == 'repository_dispatch' || inputs.create_pr == 'true')
71 + uses: peter-evans/create-pull-request@v7
72 + with:
73 + commit-message: 'docs: update toolkits and API data'
74 + title: 'docs: Update toolkits and API data'
75 + body: |
76 + Auto-generated update from Apollo production deployment.
77 +
78 + This PR updates:
79 + - `docs/public/data/toolkits.json` - Full toolkit data
80 + - `docs/public/data/toolkits-list.json` - Light toolkit list
81 + - `docs/public/openapi.json` - OpenAPI specification
82 +
83 + ${{ github.event_name == 'repository_dispatch' && format('Hermes commit: {0}', github.event.client_payload.hermes_commit) || '' }}
84 + branch: docs/auto-update-data
85 + base: next
86 + add-paths: |
87 + docs/public/data/
88 + docs/public/openapi.json