mirror of
				https://gitea.com/actions/setup-python.git
				synced 2025-10-31 07:47:08 +00:00 
			
		
		
		
	Implementation of python's caching (#266)
This commit is contained in:
		| @@ -92,3 +92,10 @@ export function validatePythonVersionFormatForPyPy(version: string) { | ||||
|   const re = /^\d+\.\d+$/; | ||||
|   return re.test(version); | ||||
| } | ||||
|  | ||||
| export function isGhes(): boolean { | ||||
|   const ghUrl = new URL( | ||||
|     process.env['GITHUB_SERVER_URL'] || 'https://github.com' | ||||
|   ); | ||||
|   return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM'; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dmitry Shibanov
					Dmitry Shibanov