Skip to content

Commit a3a9989

Browse files
committed
Refine Claude workflow by directly executing the 'claude' script with Node to bypass BusyBox environment issues, enhancing reliability in CI execution.
1 parent 8e58ce8 commit a3a9989

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/actions/claude-code-action/entrypoint.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ if [ -z "$ANTHROPIC_API_KEY" ] || [ -z "$GITHUB_TOKEN" ]; then
3939
exit 1
4040
fi
4141

42-
# Run Claude with explicit path and avoid env issues
43-
echo "Running claude command..."
44-
exec claude -p "$PROMPT"
42+
# Find the actual claude script and run it with node directly to bypass BusyBox env issues
43+
echo "Finding claude script..."
44+
CLAUDE_SCRIPT=$(which claude)
45+
echo "Claude script location: $CLAUDE_SCRIPT"
46+
47+
# Run Claude directly with node to avoid BusyBox env -S issue
48+
echo "Running claude command with node..."
49+
exec node "$CLAUDE_SCRIPT" -p "$PROMPT"

0 commit comments

Comments
 (0)