mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 10:14:02 +00:00 
			
		
		
		
	Updated restore code to print logs
This commit is contained in:
		
							parent
							
								
									d39f1d8c77
								
							
						
					
					
						commit
						0aec05f2c7
					
				
							
								
								
									
										1
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@ -48992,6 +48992,7 @@ function run() {
 | 
			
		||||
            if (saveCache === "yes") {
 | 
			
		||||
                core.saveState(constants_1.State.SaveCache, saveCache);
 | 
			
		||||
                core.info(`Input save-cache-on-any-failure is set to yes, the cache will be saved despite of any failure in the build.`);
 | 
			
		||||
                core.info(core.getState(constants_1.State.SaveCache));
 | 
			
		||||
            }
 | 
			
		||||
            if (!cacheKey) {
 | 
			
		||||
                if (core.getInput(constants_1.Inputs.StrictRestore) == "true") {
 | 
			
		||||
 | 
			
		||||
@ -42,6 +42,7 @@ async function run(): Promise<void> {
 | 
			
		||||
            core.info(
 | 
			
		||||
                `Input save-cache-on-any-failure is set to yes, the cache will be saved despite of any failure in the build.`
 | 
			
		||||
            );
 | 
			
		||||
            core.info(core.getState(State.SaveCache));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!cacheKey) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user