@ -4948,6 +4948,7 @@ var Inputs;
Inputs [ "RestoreKeys" ] = "restore-keys" ;
Inputs [ "RestoreKeys" ] = "restore-keys" ;
Inputs [ "UploadChunkSize" ] = "upload-chunk-size" ;
Inputs [ "UploadChunkSize" ] = "upload-chunk-size" ;
Inputs [ "StrictRestore" ] = "strict-restore" ;
Inputs [ "StrictRestore" ] = "strict-restore" ;
Inputs [ "SaveCacheOnAnyFailure" ] = "save-cache-on-any-failure" ;
} ) ( Inputs = exports . Inputs || ( exports . Inputs = { } ) ) ;
} ) ( Inputs = exports . Inputs || ( exports . Inputs = { } ) ) ;
var Outputs ;
var Outputs ;
( function ( Outputs ) {
( function ( Outputs ) {
@ -48990,10 +48991,10 @@ 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 . Variable s. SaveCacheOnAnyFailure ] ;
const saveCache = process . env [ constants _1 . Input s. SaveCacheOnAnyFailure ] ;
if ( saveCache === "yes" ) {
if ( saveCache === "yes" ) {
// core.exportVariable(Variables.SaveCacheOnAnyFailure, saveCache);
core . exportVariable ( constants _1 . Variables . SaveCacheOnAnyFailure , saveCache ) ;
core . info ( ` Environmen t Variable ${ constants _1 . Variables . SaveCacheOnAnyFailure } is set to yes, the cache will be saved despite of any failure in the build. ` ) ;
core . info ( ` Inpu t Variable ${ constants _1 . Variables . SaveCacheOnAnyFailure } is set to yes, the cache will be saved despite of any failure in the build. ` ) ;
}
}
if ( ! cacheKey ) {
if ( ! cacheKey ) {
if ( core . getInput ( constants _1 . Inputs . StrictRestore ) == "true" ) {
if ( core . getInput ( constants _1 . Inputs . StrictRestore ) == "true" ) {