mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-11-02 07:48:42 +00:00 
			
		
		
		
	replace throw with warn
This commit is contained in:
		
				
					committed by
					
						
						Sergey Dolin
					
				
			
			
				
	
			
			
			
						parent
						
							676975d9aa
						
					
				
				
					commit
					b28830cbe2
				
			
							
								
								
									
										6
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							@@ -61187,8 +61187,10 @@ exports.isGhes = isGhes;
 | 
			
		||||
function isCacheFeatureAvailable() {
 | 
			
		||||
    if (cache.isFeatureAvailable())
 | 
			
		||||
        return true;
 | 
			
		||||
    if (isGhes())
 | 
			
		||||
        throw new Error('Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.');
 | 
			
		||||
    if (isGhes()) {
 | 
			
		||||
        core.warning('Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.');
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
    core.warning('The runner was not able to contact the cache service. Caching will be skipped');
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user