-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1.2 KB
/
generate-ai-responses.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Purple AI Updater
on:
workflow_dispatch:
schedule:
- cron: '0 2-10 * * 4'
jobs:
purpleAIUpdater:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: env
- name: Install dependencies
run: npm ci
- name: Configure github credentials
run: |
git config --local user.name "${GITHUB_ACTOR}"
git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Run Purple AI Updater script
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_ENDPOINT: ${{ secrets.OPENAI_API_ENDPOINT }}
OPENAI_FLOW_ID: ${{ secrets.OPENAI_FLOW_ID }}
SCOPE: ${{ secrets.SCOPE }}
GOOGLE_CLIENT_EMAIL: ${{ secrets.GOOGLE_CLIENT_EMAIL }}
GOOGLE_PRIVATE_KEY: ${{ secrets.GOOGLE_PRIVATE_KEY }}
GOOGLE_SHEET_ID: ${{ secrets.GOOGLE_SHEET_ID }}
run: |
node updater/purpleAIUpdater.js
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: errors.txt
path: errors.txt