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:
Ashwin Bhat
2025-07-19 08:26:23 -07:00
committed by GitHub
parent d69f61e377
commit d290268f83

View File

@@ -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"