Skip to content

Commit c719633

Browse files
committed
test workflow
1 parent 1f52f5d commit c719633

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/claude.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
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
@@ -64,9 +65,12 @@ jobs:
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.

0 commit comments

Comments
 (0)