fix: Add missing vars

This commit is contained in:
Jan K9f 2025-06-02 07:40:56 +02:00
commit 28f88dc04f

View file

@ -4,6 +4,12 @@ inputs:
ANTHROPIC_API_KEY: ANTHROPIC_API_KEY:
description: "The API key for the anthropic API" description: "The API key for the anthropic API"
required: true required: true
GITEA_URL:
description: "The URL of the Gitea instance"
required: true
GITEA_CLAUDE_TOKEN:
description: "The token of the claude account for the Gitea instance"
required: true
runs: runs:
using: "composite" using: "composite"
@ -38,8 +44,8 @@ runs:
- name: Add Gitea Login - name: Add Gitea Login
env: env:
GITEA_URL: ${{ secrets._GITEA_URL }} GITEA_URL: ${{ inputs.GITEA_URL }}
GITEA_TOKEN: ${{ secrets._GITEA_TOKEN }} GITEA_TOKEN: ${{ inputs.GITEA_CLAUDE_TOKEN }}
run: | run: |
if [ -z "$GITEA_URL" ]; then if [ -z "$GITEA_URL" ]; then
echo "Error: GITEA_URL secret is not set." echo "Error: GITEA_URL secret is not set."
@ -60,7 +66,7 @@ runs:
- name: Claude PR Review - name: Claude PR Review
if: steps.check-renovate.outputs.author != 'Renovate Bot' if: steps.check-renovate.outputs.author != 'Renovate Bot'
env: env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} ANTHROPIC_API_KEY: ${{ inputs.ANTHROPIC_API_KEY }}
PR_NUMBER: ${{ github.event.number }} PR_NUMBER: ${{ github.event.number }}
run: | run: |
claude --allowedTools "Bash(tea:*)" --allowedTools "Bash(git:*) Read Grep WebFetch Glob LS" -p "You are a code review assistant. Your task is to review the changes in Pull Request #${PR_NUMBER}. All relevant changes can be seen by looking at the git diff HEAD...main (NEVER EVER REVIEW ALL THE CODE ONLY THE ONE FROM THE DIFF you can use the rest as context) or using the tea cli which you can use and we are on gitea. Also make sure to only review the changes in this pull request claude --allowedTools "Bash(tea:*)" --allowedTools "Bash(git:*) Read Grep WebFetch Glob LS" -p "You are a code review assistant. Your task is to review the changes in Pull Request #${PR_NUMBER}. All relevant changes can be seen by looking at the git diff HEAD...main (NEVER EVER REVIEW ALL THE CODE ONLY THE ONE FROM THE DIFF you can use the rest as context) or using the tea cli which you can use and we are on gitea. Also make sure to only review the changes in this pull request