minor changes
This commit is contained in:
parent
5fe7a0b444
commit
262e11fdfd
|
|
@ -35052,9 +35052,9 @@ class CacheDistributor {
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
throw new Error(`failed to procceed with caching with error: ${exitCode}`);
|
throw new Error(`failed to procceed with caching with error: ${exitCode}`);
|
||||||
}
|
}
|
||||||
let resolvedPath = stdout;
|
let resolvedPath = stdout.trim();
|
||||||
if (stdout.includes('~')) {
|
if (resolvedPath.includes('~')) {
|
||||||
resolvedPath = path.join(os.homedir(), stdout.slice(1));
|
resolvedPath = path.join(os.homedir(), resolvedPath.slice(1));
|
||||||
}
|
}
|
||||||
core.info(`global cache directory path is ${resolvedPath}`);
|
core.info(`global cache directory path is ${resolvedPath}`);
|
||||||
return [resolvedPath];
|
return [resolvedPath];
|
||||||
|
|
|
||||||
|
|
@ -36821,9 +36821,9 @@ class CacheDistributor {
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
throw new Error(`failed to procceed with caching with error: ${exitCode}`);
|
throw new Error(`failed to procceed with caching with error: ${exitCode}`);
|
||||||
}
|
}
|
||||||
let resolvedPath = stdout;
|
let resolvedPath = stdout.trim();
|
||||||
if (stdout.includes('~')) {
|
if (resolvedPath.includes('~')) {
|
||||||
resolvedPath = path.join(os.homedir(), stdout.slice(1));
|
resolvedPath = path.join(os.homedir(), resolvedPath.slice(1));
|
||||||
}
|
}
|
||||||
core.info(`global cache directory path is ${resolvedPath}`);
|
core.info(`global cache directory path is ${resolvedPath}`);
|
||||||
return [resolvedPath];
|
return [resolvedPath];
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,10 @@ abstract class CacheDistributor {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let resolvedPath = stdout;
|
let resolvedPath = stdout.trim();
|
||||||
|
|
||||||
if (stdout.includes('~')) {
|
if (resolvedPath.includes('~')) {
|
||||||
resolvedPath = path.join(os.homedir(), stdout.slice(1));
|
resolvedPath = path.join(os.homedir(), resolvedPath.slice(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(`global cache directory path is ${resolvedPath}`);
|
core.info(`global cache directory path is ${resolvedPath}`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue