mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 23:14:13 +08:00
Compare commits
1 Commits
ashwin/env
...
v0.0.63
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28f8362010 |
@@ -178,7 +178,7 @@ runs:
|
|||||||
echo "Base-action dependencies installed"
|
echo "Base-action dependencies installed"
|
||||||
cd -
|
cd -
|
||||||
# Install Claude Code globally
|
# Install Claude Code globally
|
||||||
curl -fsSL https://claude.ai/install.sh | bash -s 1.0.86
|
curl -fsSL https://claude.ai/install.sh | bash -s 1.0.88
|
||||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
- name: Setup Network Restrictions
|
- name: Setup Network Restrictions
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ runs:
|
|||||||
|
|
||||||
- name: Install Claude Code
|
- name: Install Claude Code
|
||||||
shell: bash
|
shell: bash
|
||||||
run: curl -fsSL https://claude.ai/install.sh | bash -s 1.0.86
|
run: curl -fsSL https://claude.ai/install.sh | bash -s 1.0.88
|
||||||
|
|
||||||
- name: Run Claude Code Action
|
- name: Run Claude Code Action
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -145,6 +145,14 @@ export async function runClaude(promptPath: string, options: ClaudeOptions) {
|
|||||||
|
|
||||||
console.log(`Prompt file size: ${promptSize} bytes`);
|
console.log(`Prompt file size: ${promptSize} bytes`);
|
||||||
|
|
||||||
|
// Log custom environment variables if any
|
||||||
|
const customEnvKeys = Object.keys(config.env).filter(
|
||||||
|
(key) => key !== "CLAUDE_ACTION_INPUTS_PRESENT",
|
||||||
|
);
|
||||||
|
if (customEnvKeys.length > 0) {
|
||||||
|
console.log(`Custom environment variables: ${customEnvKeys.join(", ")}`);
|
||||||
|
}
|
||||||
|
|
||||||
// Output to console
|
// Output to console
|
||||||
console.log(`Running Claude with prompt from file: ${config.promptPath}`);
|
console.log(`Running Claude with prompt from file: ${config.promptPath}`);
|
||||||
|
|
||||||
@@ -160,11 +168,6 @@ export async function runClaude(promptPath: string, options: ClaudeOptions) {
|
|||||||
pipeStream.destroy();
|
pipeStream.destroy();
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("yolo", process.env);
|
|
||||||
console.log("yolo running with", {
|
|
||||||
...process.env,
|
|
||||||
...config.env,
|
|
||||||
});
|
|
||||||
const claudeProcess = spawn("claude", config.claudeArgs, {
|
const claudeProcess = spawn("claude", config.claudeArgs, {
|
||||||
stdio: ["pipe", "pipe", "inherit"],
|
stdio: ["pipe", "pipe", "inherit"],
|
||||||
env: {
|
env: {
|
||||||
|
|||||||
Reference in New Issue
Block a user