- only create the temp dir if it does not exist
This commit is contained in:
+1
-1
@@ -2597,7 +2597,7 @@ function writeCacheData(data, cacheOutput) {
|
||||
cacheFile = cacheOutput;
|
||||
}
|
||||
else {
|
||||
if (process_1.env.RUNNER_TEMP) {
|
||||
if (process_1.env.RUNNER_TEMP && !fs.existsSync(process_1.env.RUNNER_TEMP)) {
|
||||
fs.mkdirSync(process_1.env.RUNNER_TEMP);
|
||||
}
|
||||
cacheFile = `${process_1.env.RUNNER_TEMP}/rcba-cache.json`;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -32,7 +32,7 @@ export function writeCacheData(data: Data, cacheOutput: string | null): void {
|
||||
// However, this can result in a "Argument list too long" exception for very long caches
|
||||
cacheFile = cacheOutput
|
||||
} else {
|
||||
if (env.RUNNER_TEMP) {
|
||||
if (env.RUNNER_TEMP && !fs.existsSync(env.RUNNER_TEMP)) {
|
||||
fs.mkdirSync(env.RUNNER_TEMP)
|
||||
}
|
||||
cacheFile = `${env.RUNNER_TEMP}/rcba-cache.json`
|
||||
|
||||
Reference in New Issue
Block a user