anthropics / anthropics/claude-code-action

Claude action fails when slash-commands directory is missing

Aperta
#415 3 commenti 2 reazioni 1 assegnatario Rivendicata da @km-anthropic Vedi su GitHub
bug p2
Lingua principale
TypeScript
Stelle
8.9k
Fork
2.1k
Merge medio
3g 9h
PR unite (30g)
10

Descrizione

**Describe the bug**
The workflow fails on the step that copies the slash commands directory, with the error:
Slash commands directory not found or error copying: ShellError: Failed with exit code 1

**To Reproduce**
Steps to reproduce the behavior:
1. Use the claude-code-action in a GitHub Actions workflow (e.g., anthropics/claude-code-action@v0.0.53).
2. Trigger the workflow (e.g., on PR or push).
3. Observe the step that attempts to copy the slash-commands directory.
4. Workflow fails with exit code 1.

**Expected behavior**
If the slash-commands directory is not present, the workflow should skip the copy step gracefully and not fail.

**Screenshots**
Not applicable, but here is the error snippet from the logs:

```
Copying slash commands from /home/runner/work/_actions/anthropics/claude-code-action/v0.0.53/slash-commands to /home/runner/.claude/ Slash commands directory not found or error copying: Shell
Error: Failed with exit code 1
```

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

**Additional context**

Occurs with anthropics/claude-code-action@v0.0.53.
No custom slash-commands directory is in use.
Would expect the step to be non-fatal if the directory is missing.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.