Skip to content

Instantly share code, notes, and snippets.

@laiso
Created May 31, 2025 09:39
Show Gist options
  • Save laiso/e5b83b64fa19467e50bb07c634c604e6 to your computer and use it in GitHub Desktop.
Save laiso/e5b83b64fa19467e50bb07c634c604e6 to your computer and use it in GitHub Desktop.
claude-code-action-example-ios: .github/workflows/claude-pr.yml
name: Run Claude Code
on:
workflow_dispatch:
inputs:
test_prompt:
description: "Test prompt for Claude"
required: false
default: "List the files in the current directory starting with 'package'"
jobs:
run-claude:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Run Claude Code
uses: anthropics/claude-code-base-action@beta
with:
prompt: ${{ github.event.inputs.test_prompt || 'コードベースを分析して、主要な機能を説明してください' }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
allowed_tools: "Write,Edit,Bash"
max_turns: "5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment