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 4949 uses : dev-hanz-ops/install-gh-cli-action@v0.2.1
5050
5151 - name : Download job log
52+ id : grep-errors
5253 run : |
5354 gh api /repos/${{ github.repository }}/actions/jobs/${{ steps.extract.outputs.job_id }}/logs > job-log.txt
5455 grep -iE 'error|✗|failed|panic' job-log.txt > errors.txt
6465 echo "----- ERROR LOGS -----"
6566 echo "${{ steps.grep-errors.outputs.errors }}"
6667
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