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
No known key found for this signature in database
GPG Key ID: DBA1C0A9669D56DD

View File

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