Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/embeddings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Regenerate Embeddings

on:
schedule:
- cron: '0 3 * * 0' # weekly Sunday 03:00 UTC
workflow_dispatch:

jobs:
regenerate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version: '20'
cache: 'npm'

- run: npm ci

- run: npm run build -w @retort-plugins/router

- name: Regenerate embeddings index
run: node packages/router/scripts/generate-embeddings.mjs

- name: Commit if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add packages/router/data/embeddings.json
git diff --staged --quiet || git commit -m "chore(router): regenerate embeddings index [skip ci]"
git push
Loading
Loading