mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
Merge https://github.com/google/adk-python/pull/3638 Thanks for this great project 👏 This PR updates the GitHub actions dependencies to the latest version. ### Checklist - [X] I have read the [CONTRIBUTING.md](https://github.com/google/adk-python/blob/main/CONTRIBUTING.md) document. - [X] I have performed a self-review of my own code. Co-authored-by: Hangfei Lin <hangfei@google.com> COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3638 from gioboa:ci/actions-versions f7d6f3b5233e8cb135c8af88d5b6e0ead8382055 PiperOrigin-RevId: 835343177
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: ADK Pull Request Triaging Agent
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, reopened, edited]
|
|
workflow_dispatch:
|
|
inputs:
|
|
pr_number:
|
|
description: 'The Pull Request number to triage'
|
|
required: true
|
|
type: 'string'
|
|
|
|
jobs:
|
|
agent-triage-pull-request:
|
|
if: github.event_name == 'workflow_dispatch' || !contains(github.event.pull_request.labels.*.name, 'google-contributor')
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install requests google-adk
|
|
|
|
- name: Run Triaging Script
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.ADK_TRIAGE_AGENT }}
|
|
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
|
|
GOOGLE_GENAI_USE_VERTEXAI: 0
|
|
OWNER: 'google'
|
|
REPO: 'adk-python'
|
|
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number || github.event.inputs.pr_number }}
|
|
INTERACTIVE: ${{ vars.PR_TRIAGE_INTERACTIVE }}
|
|
PYTHONPATH: contributing/samples
|
|
run: python -m adk_pr_triaging_agent.main
|