@@ -13,46 +13,17 @@ permissions:
1313 actions : read
1414
1515env :
16- ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY_SORA_OSS_SONNET }}
16+ CLAUDE_API_KEY : ${{ secrets.ANTHROPIC_API_KEY_SORA_OSS_SONNET }}
17+ CLAUDE_OAUTH_TOKEN : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN_VOLUNTAS }}
1718
1819jobs :
19- claude-opus-response-voluntas :
20- if : github.event.comment.user.login == 'voluntas'
20+ claude-response :
2121 runs-on : ubuntu-24.04
2222 timeout-minutes : 15
2323 steps :
2424 - uses : actions/checkout@v5
25- - uses : anthropics/ claude-code-action@v1
25+ - uses : shiguredo/github-actions/.github/actions/ claude-code-action@main
2626 with :
27- claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN_VOLUNTAS }}
28- github_token : ${{ secrets.GITHUB_TOKEN }}
29- trigger_phrase : " !opus"
30- claude_args : |
31- --model claude-opus-4-1-20250805
32-
33- check-permission :
34- if : github.event.comment.user.login != 'voluntas'
35- runs-on : ubuntu-24.04
36- outputs :
37- has_permission : ${{ steps.check.outputs.has-permission }}
38- steps :
39- - uses : actions/checkout@v5
40- - id : check
41- uses : shiguredo/github-actions/.github/actions/check-write-permission@main
42- with :
43- username : ${{ github.event.comment.user.login }}
44-
45- claude-sonnet-response-others :
46- needs : check-permission
47- if : needs.check-permission.outputs.has_permission == 'true'
48- runs-on : ubuntu-24.04
49- timeout-minutes : 15
50- steps :
51- - uses : actions/checkout@v5
52- - uses : anthropics/claude-code-action@v1
53- with :
54- anthropic_api_key : ${{ env.ANTHROPIC_API_KEY }}
55- github_token : ${{ secrets.GITHUB_TOKEN }}
56- trigger_phrase : " !sonnet"
57- claude_args : |
58- --model claude-sonnet-4-5-20250929
27+ api_key : ${{ env.CLAUDE_API_KEY }}
28+ oauth_user : voluntas
29+ oauth_token : ${{ env.CLAUDE_OAUTH_TOKEN }}
0 commit comments