@devries-cameron20 / composio-1 / commits / 6873867bd
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.

ci(docs): add semantic artifact rebuild dispatch

jkomyno committed Aug 25, 2026 at 14:43 UTC 6873867bdaf0422ba3c228c1913461fc58b53f33
1 file changed +41
.github/workflows/docs-update-kb.yml
+41
@@ -6,12 +6,53 @@ on:
6 repository_dispatch:
7 types: [support-knowledge-updated]
8 workflow_dispatch:
9 + inputs:
10 + rebuild_semantic:
11 + description: Rebuild the semantic artifact from the checked-in docs corpus
12 + required: false
13 + default: false
14 + type: boolean
15
16 permissions:
17 contents: read
18
19 jobs:
20 + rebuild-semantic:
21 + if: ${{ inputs.rebuild_semantic }}
22 + runs-on: ubuntu-latest
23 + permissions:
24 + contents: read
25 + defaults:
26 + run:
27 + working-directory: ./docs
28 +
29 + steps:
30 + - name: Checkout docs repository
31 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32 + with:
33 + persist-credentials: false
34 +
35 + - name: Setup Node.js, pnpm, Bun
36 + uses: ./.github/actions/setup-node-pnpm-bun
37 +
38 + - name: Install dependencies
39 + run: bun install --frozen-lockfile
40 +
41 + - name: Rebuild semantic artifact
42 + env:
43 + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
44 + run: bun run build:kb-semantic
45 +
46 + - name: Upload semantic artifact
47 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
48 + with:
49 + name: kb-semantic-refresh
50 + path: docs/kb/semantic-index.json
51 + if-no-files-found: error
52 + retention-days: 1
53 +
54 refresh:
55 + if: ${{ !inputs.rebuild_semantic }}
56 runs-on: ubuntu-latest
57 permissions:
58 contents: read