Skip to content

Hide Cloud Slack's private channel names for AI assistant (#44) #29

Hide Cloud Slack's private channel names for AI assistant (#44)

Hide Cloud Slack's private channel names for AI assistant (#44) #29

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