From ee40c6c19df06dc552b4dee56beae09cd0a3852e Mon Sep 17 00:00:00 2001 From: Mark Wylde Date: Fri, 7 Aug 2026 22:25:21 +0100 Subject: [PATCH] fix: run pinned Gitea base action --- action.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/action.yml b/action.yml index ec2e069..c84802d 100644 --- a/action.yml +++ b/action.yml @@ -173,26 +173,10 @@ runs: GITEA_API_URL: ${{ env.GITHUB_SERVER_URL }} ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }} - - name: Install Claude - if: steps.prepare.outputs.contains_trigger == 'true' - shell: bash - run: | - # Install Claude Code if no custom executable is provided - if [ -z "${{ inputs.path_to_claude_code_executable }}" ]; then - echo "Installing Claude Code..." - curl -fsSL https://claude.ai/install.sh | bash -s 2.1.173 - echo "$HOME/.local/bin" >> "$GITHUB_PATH" - else - echo "Using custom Claude Code executable: ${{ inputs.path_to_claude_code_executable }}" - # Add the directory containing the custom executable to PATH - CLAUDE_DIR=$(dirname "${{ inputs.path_to_claude_code_executable }}") - echo "$CLAUDE_DIR" >> "$GITHUB_PATH" - fi - # TODO pass claude_code_executable as input and use it here - name: Run Claude Code id: claude-code if: steps.prepare.outputs.contains_trigger == 'true' - uses: anthropics/claude-code-base-action@v0.0.63 + uses: markwylde/claude-code-gitea-action/base-action@6f6b9c0489623e97cff4f10bde3283e8fb6ba856 with: prompt_file: /tmp/claude-prompts/claude-prompt.txt allowed_tools: ${{ env.ALLOWED_TOOLS }} @@ -203,6 +187,7 @@ runs: mcp_config: ${{ steps.prepare.outputs.mcp_config }} use_bedrock: ${{ inputs.use_bedrock }} use_vertex: ${{ inputs.use_vertex }} + path_to_claude_code_executable: ${{ inputs.path_to_claude_code_executable }} anthropic_api_key: ${{ inputs.anthropic_api_key }} claude_code_oauth_token: ${{ inputs.claude_code_oauth_token }} settings: ${{ inputs.settings }}