Update temp directory paths to use runner temp directory

This commit is contained in:
Minsu Lee
2025-06-05 10:36:39 +09:00
parent 699aa26b41
commit 41edecda49
2 changed files with 3 additions and 3 deletions

View File

@@ -620,7 +620,7 @@ export async function createPrompt(
claudeBranch,
);
await mkdir("/tmp/claude-prompts", { recursive: true });
await mkdir(`${process.env.RUNNER_TEMP}/claude-prompts`, { recursive: true });
// Generate the prompt
const promptContent = generatePrompt(preparedContext, githubData);
@@ -631,7 +631,7 @@ export async function createPrompt(
console.log("=======================");
// Write the prompt file
await writeFile("/tmp/claude-prompts/claude-prompt.txt", promptContent);
await writeFile(`${process.env.RUNNER_TEMP}/claude-prompts/claude-prompt.txt`, promptContent);
// Set allowed tools
const allAllowedTools = buildAllowedToolsString(