Skip to content

Commit e487a75

Browse files
authored
feat:新增calude action 配置 (#301)
1 parent 76146f6 commit e487a75

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/claude.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Claude Code Action
2+
3+
on:
4+
issue_comment:
5+
types: [created, edited]
6+
pull_request_target:
7+
types: [opened, synchronize, reopened, edited]
8+
9+
jobs:
10+
claude:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
issues: write
16+
17+
steps:
18+
- name: Install bun
19+
run: curl -fsSL https://bun.sh/install | bash
20+
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 20
23+
24+
- name: Claude Code Action
25+
uses: anthropics/claude-code-action@v0.0.31
26+
with:
27+
github_token: ${{ secrets.MY_GITHUB_TOKEN }}
28+
anthropic_api_key: ${{secrets.ANTHROPIC_API_KEY}}
29+
claude_env: |
30+
DEBUG: true
31+
ANTHROPIC_BASE_URL: ${{secrets.ANTHROPIC_BASE_URL}}

0 commit comments

Comments
 (0)