Skip to content

Commit 8dc0c94

Browse files
xuanyang15copybara-github
authored andcommitted
chore: add Github workflow config for the ADK Answering agent
PiperOrigin-RevId: 791407331
1 parent 71fbc92 commit 8dc0c94

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on:
2+
discussion:
3+
types: [created]
4+
discussion_comment:
5+
types: [created]
6+
7+
jobs:
8+
agent-answer-questions:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.11'
19+
20+
- name: Authenticate to Google Cloud
21+
id: auth
22+
uses: 'google-github-actions/auth@v2'
23+
with:
24+
credentials_json: '${{ secrets.ADK_GCP_SA_KEY }}'
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install google-adk
30+
31+
- name: Run Answering Script
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.ADK_TRIAGE_AGENT }}
34+
GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
35+
GOOGLE_CLOUD_LOCATION: ${{ secrets.GOOGLE_CLOUD_LOCATION }}
36+
VERTEXAI_DATASTORE_ID: ${{ secrets.VERTEXAI_DATASTORE_ID }}
37+
GOOGLE_GENAI_USE_VERTEXAI: 1
38+
OWNER: 'google'
39+
REPO: 'adk-python'
40+
INTERACTIVE: 0
41+
DISCUSSION_NUMBER: ${{ github.event.discussion.number }}
42+
PYTHONPATH: contributing/samples
43+
run: python -m adk_answering_agent.main

0 commit comments

Comments
 (0)