Skip to content

Commit 4c8c137

Browse files
committed
ci: fix
1 parent bab6fe9 commit 4c8c137

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/review-renovate.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ jobs:
2626
persist-credentials: false
2727

2828
- uses: anthropics/claude-code-action/base-action@15db2b3c79c0681556c056e9bc3f61fd3fc0347d # v0.0.54
29+
id: claude
30+
env:
31+
GITHUB_TOKEN: ${{ github.token }}
2932
with:
3033
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
31-
allowed_tools: 'Bash(gh pr diff:*),Bash(gh pr comment:*),WebFetch(domain:github.com),WebFetch(domain:raw.githubusercontent.com)'
34+
allowed_tools: 'Bash(gh pr diff:*),WebFetch(domain:github.com),WebFetch(domain:raw.githubusercontent.com)'
3235
prompt: |
3336
## Context
3437
@@ -69,9 +72,6 @@ jobs:
6972
- **Needs Manual Migration**: Manual code fixes or configuration changes required
7073
- **Not Safe**: Major breaking changes or security risks present
7174
72-
5. **Post Review Results as Comment**
73-
- Post detailed analysis results as a comment using `gh pr comment ${{ github.event.pull_request.number }} --body '## Renovate PR Review Results ...'`
74-
7575
### Report Format
7676
7777
```markdown
@@ -97,3 +97,15 @@ jobs:
9797
- [Release notes]
9898
- [CHANGELOG]
9999
```
100+
101+
- name: Get Claude Code Result
102+
id: result
103+
env:
104+
CLAUDE_CODE_EXECUTION_FILE: ${{ steps.claude.outputs.execution_file }}
105+
run: |
106+
EOF=$(uuidgen)
107+
{
108+
echo "value<<$EOF"
109+
jq < "$CLAUDE_CODE_EXECUTION_FILE"
110+
echo "$EOF"
111+
} >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)