anthropics / anthropics/claude-code-action

Prepare step failed with error: Unsupported event type: push

Offen
#624 3 Kommentare 21 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug p2
Vorherrschende Sprache
TypeScript
Sterne
8.9k
Forks
2.1k
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
10

Beschreibung

**Describe the bug**
A clear and concise description of what the bug is.
Im trying to run the pipeline on branch push but it does not seems to work. It throws
```Prepare step failed with error: Unsupported event type: push.```

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Workflow yml file**
If it's not sensitive, consider including a paste of your full Claude workflow.yml file.
```
permissions:
contents: write
pull-requests: write
issues: write
actions: read
id-token: write

on:
push:
branches:
- PLAT-36124

jobs:
code-review:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App installation token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ****
private-key: ****

- name: Get GitHub App User ID
id: get-user-id
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Review PR with Claude Code Action
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ****
github_token: ${{ steps.app-token.outputs.token }}
prompt: |
$(cat .github/prompts/code-reviewer-prompt.md)

```

**API Provider**

[ ] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex

**Additional context**
Add any other context about the problem here.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.