mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
minor changes
This commit is contained in:
parent
5fe7a0b444
commit
262e11fdfd
3 changed files with 9 additions and 9 deletions
6
dist/cache-save/index.js
vendored
6
dist/cache-save/index.js
vendored
|
@ -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];
|
||||||
|
|
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -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…
Add table
Reference in a new issue