File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 49
49
uses : dev-hanz-ops/install-gh-cli-action@v0.2.1
50
50
51
51
- name : Download job log
52
+ id : grep-errors
52
53
run : |
53
54
gh api /repos/${{ github.repository }}/actions/jobs/${{ steps.extract.outputs.job_id }}/logs > job-log.txt
54
55
grep -iE 'error|✗|failed|panic' job-log.txt > errors.txt
64
65
echo "----- ERROR LOGS -----"
65
66
echo "${{ steps.grep-errors.outputs.errors }}"
66
67
67
- # - name: Run Claude PR Action
68
- # uses: anthropics/claude-code-action@beta
69
- # with:
70
- # anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
71
- # timeout_minutes: "60"
72
- # model: "claude-opus-4-20250514"
68
+ - name : Run Claude PR Action
69
+ uses : anthropics/claude-code-action@beta
70
+ with :
71
+ anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
72
+ timeout_minutes : " 60"
73
+ model : " claude-opus-4-20250514"
74
+ direct_prompt : |
75
+ Please check the error ${{ steps.grep-errors.outputs.errors }}
76
+ and fix the issue in the code.
You can’t perform that action at this time.
0 commit comments