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

@@ -107,7 +107,7 @@ runs:
if: steps.prepare.outputs.contains_trigger == 'true' if: steps.prepare.outputs.contains_trigger == 'true'
uses: anthropics/claude-code-base-action@1370ac97fbba9bddec20ea2924b5726bf10d8b94 # v0.0.9 uses: anthropics/claude-code-base-action@1370ac97fbba9bddec20ea2924b5726bf10d8b94 # v0.0.9
with: with:
prompt_file: /tmp/claude-prompts/claude-prompt.txt prompt_file: ${{ runner.temp }}/claude-prompts/claude-prompt.txt
allowed_tools: ${{ env.ALLOWED_TOOLS }} allowed_tools: ${{ env.ALLOWED_TOOLS }}
disallowed_tools: ${{ env.DISALLOWED_TOOLS }} disallowed_tools: ${{ env.DISALLOWED_TOOLS }}
timeout_minutes: ${{ inputs.timeout_minutes }} timeout_minutes: ${{ inputs.timeout_minutes }}

View File

@@ -620,7 +620,7 @@ export async function createPrompt(
claudeBranch, claudeBranch,
); );
await mkdir("/tmp/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 +631,7 @@ export async function createPrompt(
console.log("======================="); console.log("=======================");
// Write the prompt file // 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 // Set allowed tools
const allAllowedTools = buildAllowedToolsString( const allAllowedTools = buildAllowedToolsString(