Skip to content

Analyze New Release for ADK Docs Updates #40

Analyze New Release for ADK Docs Updates

Analyze New Release for ADK Docs Updates #40

name: Analyze New Release for ADK Docs Updates
on:
# Runs on every new release.
release:
types: [published]
# Manual trigger for testing and retrying.
workflow_dispatch:
inputs:
resume:
description: 'Resume from the last failed/interrupted run'
required: false
type: boolean
default: false
start_tag:
description: 'Older release tag (base), e.g. v1.26.0'
required: false
type: string
end_tag:
description: 'Newer release tag (head), e.g. v1.27.0'
required: false
type: string
jobs:
analyze-new-release-for-adk-docs-updates:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Load adk-bot SSH Private Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.ADK_BOT_SSH_PRIVATE_KEY }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests google-adk
- name: Restore session DB from cache
if: ${{ github.event.inputs.resume == 'true' }}
uses: actions/cache/restore@v4
with:
path: contributing/samples/adk_documentation/adk_release_analyzer/sessions.db
key: analyzer-session-db
- name: Run Analyzing Script
env:
GITHUB_TOKEN: ${{ secrets.ADK_TRIAGE_AGENT }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY_FOR_DOCS_AGENTS }}
GOOGLE_GENAI_USE_VERTEXAI: 0
DOC_OWNER: 'google'
CODE_OWNER: 'google'
DOC_REPO: 'adk-docs'
CODE_REPO: 'adk-python'
INTERACTIVE: 0
PYTHONPATH: contributing/samples/adk_documentation
run: >-
python -m adk_release_analyzer.main
${{ github.event.inputs.resume == 'true' && '--resume' || '' }}
${{ github.event.inputs.start_tag && format('--start-tag {0}', github.event.inputs.start_tag) || '' }}
${{ github.event.inputs.end_tag && format('--end-tag {0}', github.event.inputs.end_tag) || '' }}
- name: Save session DB to cache
if: always()
uses: actions/cache/save@v4
with:
path: contributing/samples/adk_documentation/adk_release_analyzer/sessions.db
key: analyzer-session-db