added github workflow #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AI Chatbot Update Workflow | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- main | |
jobs: | |
update-ai-chatbot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16.x' # Use the latest LTS version of Node.js | |
always-auth: false | |
check-latest: true | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Script | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }} | |
run: node scripts/embedTutorials.js |