···11+# IMPORTANT: Do not move this file in your repo! Make sure it's located at .github/workflows/claude-dispatch.yml
22+name: Claude Code Dispatch
33+44+# IMPORTANT: Do not modify this `on` section!
55+on:
66+ repository_dispatch:
77+ types: [claude-dispatch]
88+99+jobs:
1010+ claude-dispatch:
1111+ runs-on: ubuntu-latest
1212+ permissions:
1313+ contents: write
1414+ pull-requests: write
1515+ issues: write
1616+ id-token: write
1717+ steps:
1818+ - name: Checkout repository
1919+ uses: actions/checkout@v4
2020+ with:
2121+ fetch-depth: 1
2222+2323+ # - name: Preliminary Setup
2424+ # run: |
2525+ # echo "Setting up environment..."
2626+ # Add any preliminary setup commands here to setup Claude's dev environment
2727+ # e.g., npm install, etc.
2828+2929+ - name: Run Claude Code
3030+ id: claude
3131+ uses: anthropics/claude-code-action@eap
3232+ with:
3333+ mode: 'remote-agent'
3434+3535+ # Optional: Specify an API key, otherwise we'll use your Claude account automatically
3636+ # anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3737+3838+ # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
3939+ # model: "claude-opus-4-20250514"
4040+4141+ # Optional: Allow Claude to run specific commands
4242+ # allowed_tools: |
4343+ # Bash(npm run lint)
4444+ # Bash(npm run test)
4545+ # Bash(npm run build)
4646+4747+ # Optional: Custom environment variables for Claude
4848+ # claude_env: |
4949+ # NODE_ENV: test