Skip to content

refactor: unified VI, shared components, React 19, performance (#2706) #46

refactor: unified VI, shared components, React 19, performance (#2706)

refactor: unified VI, shared components, React 19, performance (#2706) #46

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 }}