We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5250fc6 + 602235d commit e927ebbCopy full SHA for e927ebb
src/context.ts
@@ -23,7 +23,12 @@ import * as github from '@actions/github';
23
import {GitHub} from './github';
24
25
export class Context {
26
- private static readonly _tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-actions-toolkit-'));
+ private static readonly _tmpDir = fs.mkdtempSync(path.join(Context.ensureDirExists(process.env.RUNNER_TEMP || os.tmpdir()), 'docker-actions-toolkit-'));
27
+
28
+ private static ensureDirExists(dir: string): string {
29
+ fs.mkdirSync(dir, {recursive: true});
30
+ return dir;
31
+ }
32
33
public static tmpDir(): string {
34
return Context._tmpDir;
0 commit comments