fix: Dont run on renovate #230
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,13 @@ jobs:
|
|||
ref: ${{ github.ref }}
|
||||
fetch-tags: true
|
||||
|
||||
- name: Check if last commit is from Renovate Bot
|
||||
id: check-renovate
|
||||
run: |
|
||||
AUTHOR=$(git log -1 --pretty=format:'%an')
|
||||
echo "Author is $AUTHOR"
|
||||
echo "author=$AUTHOR" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Set Tea Version
|
||||
id: tea_version
|
||||
run: echo "version=0.9.2" >> $GITHUB_OUTPUT # Check for the latest version
|
||||
|
@ -51,6 +58,7 @@ jobs:
|
|||
run: bun i -g @anthropic-ai/claude-code
|
||||
|
||||
- name: Claude PR Review
|
||||
if: steps.check-renovate.outputs.author != 'Renovate Bot'
|
||||
env:
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
PR_NUMBER: ${{ github.event.number }}
|
||||
|
|
Reference in a new issue