Created
May 31, 2025 09:39
-
-
Save laiso/e5b83b64fa19467e50bb07c634c604e6 to your computer and use it in GitHub Desktop.
claude-code-action-example-ios: .github/workflows/claude-pr.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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