mirror of
https://github.com/actions/setup-node
synced 2025-04-17 05:33:13 +00:00
build
This commit is contained in:
parent
860bb139dc
commit
99e06de4da
4
dist/cache-save/index.js
vendored
4
dist/cache-save/index.js
vendored
@ -60395,6 +60395,10 @@ const cachePackages = (packageManager) => __awaiter(void 0, void 0, void 0, func
|
|||||||
core.debug(`Caching for '${packageManager}' is not supported`);
|
core.debug(`Caching for '${packageManager}' is not supported`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (core.getInput('cache-restore-only') == 'true') {
|
||||||
|
core.info(`Cache was not saved since 'cache-restore-only' was set to true}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!cachePaths.length) {
|
if (!cachePaths.length) {
|
||||||
// TODO: core.getInput has a bug - it can return undefined despite its definition (tests only?)
|
// TODO: core.getInput has a bug - it can return undefined despite its definition (tests only?)
|
||||||
// export declare function getInput(name: string, options?: InputOptions): string;
|
// export declare function getInput(name: string, options?: InputOptions): string;
|
||||||
|
@ -33,8 +33,10 @@ const cachePackages = async (packageManager: string) => {
|
|||||||
core.debug(`Caching for '${packageManager}' is not supported`);
|
core.debug(`Caching for '${packageManager}' is not supported`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (core.getInput('cache-restore-only') == true ){
|
if (core.getInput('cache-restore-only') == 'true') {
|
||||||
core.info(`Cache was not saved since 'cache-restore-only' was set }`);
|
core.info(
|
||||||
|
`Cache was not saved since 'cache-restore-only' was set to true}`
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user