Skip to content

Change LLM_MODEL in presubmit workflow #1

Change LLM_MODEL in presubmit workflow

Change LLM_MODEL in presubmit workflow #1

Workflow file for this run

name: Presubmit.ai

Check failure on line 1 in .github/workflows/presubmit.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/presubmit.yml

Invalid workflow file

(Line: 32, Col: 13): Unexpected value '', (Line: 33, Col: 17): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GITHUB_TOKEN, (Line: 33, Col: 17): Unexpected value '${{ secrets.GITHUB_TOKEN }}', (Line: 34, Col: 16): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.LLM_API_KEY, (Line: 34, Col: 16): Unexpected value '${{ secrets.LLM_API_KEY }}', (Line: 35, Col: 14): Unexpected value 'gemini-1.5-pro'
permissions:
contents: read
pull-requests: write
issues: write
on:
pull_request_target: # Handle forked repository PRs in the base repository context
types: [opened, synchronize]
pull_request_review_comment: # Handle review comments
types: [created]
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Check required secrets
run: |
if [ -z "${{ secrets.LLM_API_KEY }}" ]; then
echo "Error: LLM_API_KEY secret is not configured"
exit 1
fi
- name: Check out PR code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run AI Reviewer
uses: presubmit/ai-reviewer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
LLM_MODEL: "gemini-1.5-pro" # Change from "gemini-1.5-flash"