Skip to content

Stop the CR workflow from failing before startup #185

Stop the CR workflow from failing before startup

Stop the CR workflow from failing before startup #185

Workflow file for this run

name: Code Review

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

View workflow run for this annotation

GitHub Actions / .github/workflows/cr.yml

Invalid workflow file

(Line: 13, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.OPENAI_API_KEY != ''
on:
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
pull-requests: write
jobs:
review:
if: ${{ secrets.OPENAI_API_KEY != '' }}
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@1e3df152c1b85c12da580b206c91ad343460c584 # v1.0.23
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_ENDPOINT: https://api.openai.com/v1
MODEL: gpt-4o-mini