Update temp directory paths to use runner temp directory

This commit is contained in:
Minsu Lee
2025-06-05 10:41:14 +09:00
parent 41edecda49
commit fa36873e72

View File

@@ -620,7 +620,9 @@ export async function createPrompt(
claudeBranch,
);
await mkdir(`${process.env.RUNNER_TEMP}/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(`${process.env.RUNNER_TEMP}/claude-prompts/claude-prompt.txt`, promptContent);
await writeFile(
`${process.env.RUNNER_TEMP}/claude-prompts/claude-prompt.txt`,
promptContent,
);
// Set allowed tools
const allAllowedTools = buildAllowedToolsString(