mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
fix: run Claude from workflow directory instead of base-action directory (#312)
Changed the action to cd back to the original directory after installing dependencies, ensuring Claude runs in the context of the user's workflow rather than the base-action subdirectory. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -193,7 +193,8 @@ runs:
|
|||||||
# Run the base-action
|
# Run the base-action
|
||||||
cd ${GITHUB_ACTION_PATH}/base-action
|
cd ${GITHUB_ACTION_PATH}/base-action
|
||||||
bun install
|
bun install
|
||||||
bun run src/index.ts
|
cd -
|
||||||
|
bun run ${GITHUB_ACTION_PATH}/base-action/src/index.ts
|
||||||
env:
|
env:
|
||||||
# Base-action inputs
|
# Base-action inputs
|
||||||
CLAUDE_CODE_ACTION: "1"
|
CLAUDE_CODE_ACTION: "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user