@devries-cameron20 / composio Mirror · read-only / commits / a0f08e480
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, 03:15 UTC

fix: sync connect clients via repository_dispatch from dashboard deploys

Instead of polling on cron and failing silently because Claude can't access the private dashboard repo, accept repository_dispatch events from dashboard production deploys with client definitions in the payload. Falls back to CI_BOT_TOKEN fetch for manual triggers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 13, 2026 at 16:59 UTC a0f08e480e84c568c9a1dad4f164cebe4cbb0e6c
1 file changed +23 -5
.github/workflows/docs.sync-connect-clients.yml
+23 -5
@@ -1,8 +1,8 @@
1 name: Docs - Sync Connect Clients
2
3 on:
4 - schedule:
5 - - cron: '0 */5 * * *'
4 + repository_dispatch:
5 + types: [dashboard-production-deploy]
6 workflow_dispatch:
7
8 jobs:
@@ -21,6 +21,19 @@ jobs:
21 ref: next
22 fetch-depth: 1
23
24 + - name: Get client definitions
25 + run: |
26 + if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
27 + echo "${{ github.event.client_payload.client_definitions }}" | base64 -d > /tmp/client-definitions.ts
28 + echo "Received client-definitions.ts from dashboard deploy (tag: ${{ github.event.client_payload.dashboard_tag }})"
29 + else
30 + echo "Manual trigger — fetching from dashboard repo"
31 + GH_TOKEN="${{ secrets.CI_BOT_TOKEN }}" gh api \
32 + repos/ComposioHQ/composio_dashboard/contents/src/app/\(connect\)/\[org\]/~/connect/clients/_components/client-definitions.ts?ref=main \
33 + --jq '.content' | base64 -d > /tmp/client-definitions.ts
34 + fi
35 + echo "$(wc -l < /tmp/client-definitions.ts) lines"
36 +
37 - name: Sync Connect clients
38 uses: anthropics/claude-code-action@v1
39 with:
@@ -29,8 +42,7 @@ jobs:
42 Sync the Composio Connect clients page from the dashboard repo.
43
44 1. Read docs/.claude/agents/connect-clients-sync.md for full instructions
32 - 2. Fetch the client definitions from ComposioHQ/composio_dashboard (main branch):
33 - src/app/(connect)/[org]/~/connect/clients/_components/client-definitions.ts
45 + 2. The client definitions have already been fetched to /tmp/client-definitions.ts — read that file
46 3. Read the current docs/content/docs/composio-connect.mdx
47 4. Compare and update if there are any differences (new clients, changed steps, updated descriptions)
48 5. Download any new client logos to docs/public/images/clients/
@@ -56,13 +68,19 @@ jobs:
68 gh pr create \
69 --base next \
70 --head "$BRANCH" \
59 - --title "docs: Sync Connect clients from dashboard" \
71 + --title "docs: sync Connect clients from dashboard" \
72 --body "$(cat <<'EOF'
73 ## Summary
74 Automated sync of AI client definitions from `ComposioHQ/composio_dashboard`.
75
76 Updates client setup steps, descriptions, and logos on the Composio Connect page.
77
78 + ## What may have changed
79 + - New or removed AI clients
80 + - Updated setup steps (deeplinks, config changes)
81 + - Category changes (popular/ide/other)
82 + - Client logos
83 +
84 Generated by Claude Code via GitHub Actions.
85 EOF
86 )"