mirror of https://github.com/actions/cache.git
				
				
				
			Updated action code
This commit is contained in:
		
							parent
							
								
									8d0c6dd906
								
							
						
					
					
						commit
						0756d0f6e9
					
				| 
						 | 
				
			
			@ -4947,6 +4947,7 @@ var Inputs;
 | 
			
		|||
    Inputs["Path"] = "path";
 | 
			
		||||
    Inputs["RestoreKeys"] = "restore-keys";
 | 
			
		||||
    Inputs["UploadChunkSize"] = "upload-chunk-size";
 | 
			
		||||
    Inputs["StrictRestore"] = "strict-restore";
 | 
			
		||||
})(Inputs = exports.Inputs || (exports.Inputs = {}));
 | 
			
		||||
var Outputs;
 | 
			
		||||
(function (Outputs) {
 | 
			
		||||
| 
						 | 
				
			
			@ -48995,6 +48996,10 @@ function run() {
 | 
			
		|||
            utils.setCacheState(cacheKey);
 | 
			
		||||
            const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
 | 
			
		||||
            utils.setCacheHitOutput(isExactKeyMatch);
 | 
			
		||||
            if (!isExactKeyMatch && core.getInput(constants_1.Inputs.StrictRestore) == "true") {
 | 
			
		||||
                core.info("Cache with exact key not found, hence exiting the workflow as strict-restore is set to true");
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            core.info(`Cache restored from key: ${cacheKey}`);
 | 
			
		||||
        }
 | 
			
		||||
        catch (error) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4947,6 +4947,7 @@ var Inputs;
 | 
			
		|||
    Inputs["Path"] = "path";
 | 
			
		||||
    Inputs["RestoreKeys"] = "restore-keys";
 | 
			
		||||
    Inputs["UploadChunkSize"] = "upload-chunk-size";
 | 
			
		||||
    Inputs["StrictRestore"] = "strict-restore";
 | 
			
		||||
})(Inputs = exports.Inputs || (exports.Inputs = {}));
 | 
			
		||||
var Outputs;
 | 
			
		||||
(function (Outputs) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue