anthropics / anthropics/claude-code-action
Broken CLAUDE_WORKING_DIR support
- Ngôn ngữ chính
- TypeScript
- Star
- 8.9k
- Fork
- 2.1k
- Merge trung bình
- 3 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 10
Mô tả
**Describe the bug**
The claude-code-action supports setting `CLAUDE_WORKING_DIR` to switch to a different directory before running claude. This is important for monorepos or repositories with nested CLAUDE.md files, to ensure the CI job picks up all the relevant context.
This worked by explicitly cd'ing to `$CLAUDE_WORKING_DIR` before running claude. This code still exists in the base action: https://github.com/anthropics/claude-code-action/blob/main/base-action/action.yml#L124-L128
However, after the changes in https://github.com/anthropics/claude-code-action/pull/285 the working directory is onl set in the "inner" action, but not when running the "outer" action, resulting in claude being run from the top-level directory always.
I believe the cd to `$CLAUDE_WORKING_DIR` should be moved from the base action to the outer action to fix this.
**Expected behavior**
Claude should run in `$CLAUDE_WORKING_DIR`
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.