-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.07 KB
/
Copy pathdiscussions-issue.yml
File metadata and controls
45 lines (40 loc) · 1.07 KB
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
38
39
40
41
42
43
44
45
name: Discussion Comment Workflow
on:
discussion:
types: [created]
issues:
types: [opened]
discussion_comment:
types: [created]
issue_comment:
types: [created]
permissions:
contents: read
jobs:
handle_discussion:
runs-on: ubuntu-latest
environment: RAG
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install deps and build
run: |
npm install --prefix github-agent
yarn --cwd github-agent build
- name: Run worker
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
WEAVIATE_API_KEY: ${{ secrets.WEAVIATE_API_KEY }}
WEAVIATE_HOST: ${{ secrets.WEAVIATE_HOST }}
GITHUB_TOKEN: ${{ secrets.BAD_WOLF_TOKEN }}
MODE: "prod"
run: |
echo '${{ toJson(github.event) }}' > payload.json
node github-agent/dist/cli.js payload.json --model 1