Skip to content

Support Jina.ai API key to speed up fetching the AI assistant content… #22

Support Jina.ai API key to speed up fetching the AI assistant content…

Support Jina.ai API key to speed up fetching the AI assistant content… #22

name: Reconfigure OpenAI assistant
on:
push:
tags:
- '*'
branches:
- main
jobs:
reconfigure-ai-assistant:
name: Reconfigure OpenAI assistant
runs-on: ubuntu-22.04
timeout-minutes: 15
env:
OPENAI_API_KEY: ${{ startsWith(github.ref, 'refs/tags/') && secrets.PROD_OPENAI_API_KEY || secrets.DEV_OPENAI_API_KEY }}
ASSISTANT_ENV: ${{ startsWith(github.ref, 'refs/tags/') && 'prod' || 'dev' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: volta-cli/action@v4
- name: Reconfigure assistant
run: |
cd ./hack/assistant-setup
npm install
npm start