Skip to content

Test new tag build job #36

Test new tag build job

Test new tag build job #36

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