anthropics / anthropics/claude-code-action

Claude action fails when slash-commands directory is missing

Abierto
#415 3 comentarios 2 reacciones 1 asignado Reclamado por @km-anthropic Ver en GitHub
bug p2
Lenguaje dominante
TypeScript
Estrellas
8.9k
Forks
2.1k
Merge medio
3 d 9 h
PR fusionados (30 d)
10

Descripción

**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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.