|
|
@ -48991,7 +48991,7 @@ function run() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const cacheKey = yield cache.restoreCache(cachePaths, primaryKey, restoreKeys);
|
|
|
|
const cacheKey = yield cache.restoreCache(cachePaths, primaryKey, restoreKeys);
|
|
|
|
//Check if user wants to save cache despite of failure in any previous job
|
|
|
|
//Check if user wants to save cache despite of failure in any previous job
|
|
|
|
const saveCache = process.env[constants_1.Inputs.SaveCacheOnAnyFailure];
|
|
|
|
const saveCache = core.getInput(constants_1.Inputs.SaveCacheOnAnyFailure);
|
|
|
|
if (saveCache === "yes") {
|
|
|
|
if (saveCache === "yes") {
|
|
|
|
core.debug(`save cache input variable is set to yes`);
|
|
|
|
core.debug(`save cache input variable is set to yes`);
|
|
|
|
core.exportVariable(constants_1.Variables.SaveCacheOnAnyFailure, saveCache);
|
|
|
|
core.exportVariable(constants_1.Variables.SaveCacheOnAnyFailure, saveCache);
|
|
|
|