-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 944 Bytes
/
claude-fixer.yml
File metadata and controls
30 lines (26 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Claude Test Fixer
on:
workflow_run:
workflows: ["Test all cron (Linux)", "Test all cron (MacOS)"]
types: [completed]
jobs:
fix-on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
permissions:
contents: write
pull-requests: write
actions: read # Allows Claude to read the logs of the failed run
steps:
- uses: actions/checkout@v4
- name: Claude Fix Failed Tests
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: |
The "CI Tests" workflow just failed.
1. Analyze the logs from the last failed run.
2. Identify the root cause of the test failure.
3. Implement a fix and create a new pull request.
additional_permissions: |
actions: read