Skip to content

Commit

Permalink
feat: add workflow for importing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaszkowic committed Nov 8, 2023
1 parent c524509 commit d37826e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/process_documents.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Process documents

on:
workflow_dispatch: {}
repository_dispatch:
types: [process_documents]

jobs:
process_documents:
runs-on: ubuntu-latest
env:
SUPABASE_URL: ${{ vars.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
SUPABASE_DB_CONNECTION: ${{ secrets.SUPABASE_DB_CONNECTION }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- name: checkout code
uses: actions/checkout@v2
- name: preparation
run: npm ci && mkdir -p processing_data
- name: register documents
run: export PROCESSING_DIR=$(pwd)/processing_data && npx tsx ./src/run_import.ts

0 comments on commit d37826e

Please sign in to comment.