mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 10:14:02 +00:00 
			
		
		
		
	.
This commit is contained in:
		
							parent
							
								
									a781be7251
								
							
						
					
					
						commit
						be4a8ea450
					
				
							
								
								
									
										1
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@ -48993,6 +48993,7 @@ function run() {
 | 
			
		||||
            //Check if user wants to save cache despite of failure in any previous job
 | 
			
		||||
            const saveCache = process.env[constants_1.Inputs.SaveCacheOnAnyFailure];
 | 
			
		||||
            if (saveCache === "yes") {
 | 
			
		||||
                core.debug(`save cache input variable is set to yes`);
 | 
			
		||||
                core.exportVariable(constants_1.Variables.SaveCacheOnAnyFailure, saveCache);
 | 
			
		||||
                core.info(`Input Variable ${constants_1.Variables.SaveCacheOnAnyFailure} is set to yes, the cache will be saved despite of any failure in the build.`);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
@ -38,6 +38,7 @@ async function run(): Promise<void> {
 | 
			
		||||
        //Check if user wants to save cache despite of failure in any previous job
 | 
			
		||||
        const saveCache = process.env[Inputs.SaveCacheOnAnyFailure];
 | 
			
		||||
        if (saveCache === "yes") {
 | 
			
		||||
            core.debug(`save cache input variable is set to yes`);
 | 
			
		||||
            core.exportVariable(Variables.SaveCacheOnAnyFailure, saveCache);
 | 
			
		||||
            core.info(
 | 
			
		||||
                `Input Variable ${Variables.SaveCacheOnAnyFailure} is set to yes, the cache will be saved despite of any failure in the build.`
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user