forked from kevoreilly/CAPEv2
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 931 Bytes
/
auto_answer.yml
File metadata and controls
36 lines (31 loc) · 931 Bytes
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
name: Auto Answer Bot (using uv run)
on:
issues:
types: [opened]
jobs:
answer:
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- name: Set up Python with caching
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Run the answer bot with uv run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPO_NAME: ${{ github.repository }}
run: |
cd KnowledgeBaseBot && \
uv run \
--with-requirements ../requirements.txt \
--with-requirements requirements.txt \
python auto_answer_bot.py