anthropics / anthropics/claude-code-action

Claude action fails when slash-commands directory is missing

オープン
#415 コメント 3 件 リアクション 2 件 担当者 1 名 @km-anthropic が担当を希望しています GitHub で見る
bug p2
主要言語
TypeScript
スター
8.9k
フォーク
2.1k
平均マージ
3日 9時間
マージ済み PR(30日)
10

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。