@devries-cameron20 / composio Mirror · read-only / commits / be4d613d6
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 12:00 UTC

ci: Add generate:api-index to docs update workflow

When Apollo deploys and OpenAPI spec changes, also regenerate the API index pages. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 30, 2026 at 15:45 UTC be4d613d6ce39fe772aae77a341e82c5ff7e6ff5
1 file changed +7 -2
.github/workflows/docs-update-data.yml
+7 -2
@@ -44,17 +44,20 @@ jobs:
44 - name: Fetch OpenAPI spec
45 run: bun run scripts/fetch-openapi.mjs
46
47 + - name: Generate API index pages
48 + run: bun run generate:api-index
49 +
50 - name: Check for changes
51 id: changes
52 run: |
53 cd ..
51 - if git diff --quiet docs/public/data/ docs/public/openapi.json 2>/dev/null; then
54 + if git diff --quiet docs/public/data/ docs/public/openapi.json docs/content/reference/api-reference/ 2>/dev/null; then
55 echo "has_changes=false" >> $GITHUB_OUTPUT
56 echo "No changes detected"
57 else
58 echo "has_changes=true" >> $GITHUB_OUTPUT
59 echo "Changes detected:"
57 - git diff --stat docs/public/data/ docs/public/openapi.json 2>/dev/null || true
60 + git diff --stat docs/public/data/ docs/public/openapi.json docs/content/reference/api-reference/ 2>/dev/null || true
61 fi
62
63 - name: Create Pull Request
@@ -70,6 +73,7 @@ jobs:
73 - `docs/public/data/toolkits.json` - Full toolkit data
74 - `docs/public/data/toolkits-list.json` - Light toolkit list
75 - `docs/public/openapi.json` - OpenAPI specification
76 + - `docs/content/reference/api-reference/*.mdx` - API index pages
77
78 ${{ github.event_name == 'repository_dispatch' && format('Hermes commit: {0}', github.event.client_payload.hermes_commit) || '' }}
79 branch: docs/auto-update-data
@@ -77,3 +81,4 @@ jobs:
81 add-paths: |
82 docs/public/data/
83 docs/public/openapi.json
84 + docs/content/reference/api-reference/