- only create the temp dir if it does not exist

This commit is contained in:
Mike Penz
2023-08-25 08:25:16 +00:00
committed by GitHub
parent a72c0bbc47
commit 8af70e55a6
3 changed files with 3 additions and 3 deletions
Generated Vendored
+1 -1
View File
@@ -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`;
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long