Skip to content

Add AI collections 10113-10127 (Browser Agents, Memory, Gateway, Safe… #41

Add AI collections 10113-10127 (Browser Agents, Memory, Gateway, Safe…

Add AI collections 10113-10127 (Browser Agents, Memory, Gateway, Safe… #41

name: Sync Collection Configs
on:
push:
branches: [main]
paths:
- 'configs/collections/**'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm install @tidbcloud/serverless@0.0.6
- name: Sync all collections
run: |
for f in configs/collections/*.yml; do
id=$(basename "$f" | cut -d. -f1)
echo "=== Syncing collection $id ==="
node scripts/load-collection.mjs "$id" || echo "⚠ Failed to sync $id, continuing..."
done
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}