From 641adbc7a3f0b95ebab7d4b4a6ff50fb677fd68d Mon Sep 17 00:00:00 2001 From: Zobeir Hamid Date: Sat, 7 Dec 2024 14:14:32 -0800 Subject: [PATCH] feat: add ci for trieve update --- .github/workflows/update-trieve.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update-trieve.yml diff --git a/.github/workflows/update-trieve.yml b/.github/workflows/update-trieve.yml new file mode 100644 index 0000000..f9483b1 --- /dev/null +++ b/.github/workflows/update-trieve.yml @@ -0,0 +1,28 @@ +name: Update Trieve + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +on: + push: + branches: + - main + +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Trieve Fern Adapter + run: npm install -g trieve-fern-adapter + + - name: Update Trieve Chunks + env: + TRIEVE_API_HOST: ${{ secrets.TRIEVE_API_HOST }} + TRIEVE_API_KEY: ${{ secrets.TRIEVE_API_KEY }} + TRIEVE_ORGANIZATION_ID: ${{ secrets.TRIEVE_ORGANIZATION_ID }} + TRIEVE_DATASET_TRACKING_ID: ${{ secrets.TRIEVE_DATASET_TRACKING_ID }} + run: trieve-fern-adapter --file fern/docs.yml -s https://api.vapi.ai/api-json -r https://docs.vapi.ai -a api-reference