Update temp directory paths to use runner temp directory (#129)

* Update temp directory paths to use `runner` temp directory

* Update temp directory paths to use `runner` temp directory
This commit is contained in:
Minsu Lee
2025-06-06 01:53:56 +09:00
committed by GitHub
parent 699aa26b41
commit 1990b0bdb3
2 changed files with 8 additions and 3 deletions

View File

@@ -620,7 +620,9 @@ 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 +633,10 @@ 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(