From e9071c72c40638ed0f6466ba363f9547305a0113 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 15 Nov 2023 16:59:13 +0100 Subject: [PATCH] Use RUNNER_TEMP as temp directory Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.ts b/src/context.ts index ad50da6d..f35ed5f4 100644 --- a/src/context.ts +++ b/src/context.ts @@ -23,7 +23,7 @@ import * as github from '@actions/github'; import {GitHub} from './github'; export class Context { - private static readonly _tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-actions-toolkit-')); + private static readonly _tmpDir = fs.mkdtempSync(path.join(process.env.RUNNER_TEMP || os.tmpdir(), 'docker-actions-toolkit-')); public static tmpDir(): string { return Context._tmpDir;