Skip to content

test, Assisted-by: Cursor #40

test, Assisted-by: Cursor

test, Assisted-by: Cursor #40

Workflow file for this run

name: Suggest Documentation Update (Enhanced)
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
inputs:
force_run:
description: 'Force run even if filters would normally skip'
required: false
type: boolean
default: false
jobs:
suggest-docs:
runs-on: ubuntu-latest
if: |
github.event.inputs.force_run == 'true' ||
contains(github.event.pull_request.title, '[update-docs]') ||
contains(github.event.pull_request.body, '[update-docs]')
steps:
- name: Checkout PR Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Python Dependencies
run: |
pip install -U google-genai
- name: Configure Git
run: |
git config --global user.email "docbot@example.com"
git config --global user.name "Doc Bot"
- name: Set up GitHub CLI
run: |
sudo apt-get update
sudo apt-get install -y gh
- name: Run Documentation Suggester
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
DOCS_REPO_URL: ${{ secrets.DOCS_REPO_URL }}
GH_TOKEN: ${{ secrets.GH_PAT }}
run: |
python scripts/suggest_docs.py