mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 16:14:00 +08:00 
			
		
		
		
	replace throw with warn
This commit is contained in:
		 Sergey Dolin
					Sergey Dolin
				
			
				
					committed by
					
						 Sergey Dolin
						Sergey Dolin
					
				
			
			
				
	
			
			
			 Sergey Dolin
						Sergey Dolin
					
				
			
						parent
						
							676975d9aa
						
					
				
				
					commit
					b28830cbe2
				
			| @@ -107,10 +107,12 @@ export function isGhes(): boolean { | ||||
| export function isCacheFeatureAvailable(): boolean { | ||||
|   if (cache.isFeatureAvailable()) return true; | ||||
|  | ||||
|   if (isGhes()) | ||||
|     throw new Error( | ||||
|   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' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user