You've already forked setup-python
mirror of
https://github.com/actions/setup-python.git
synced 2025-07-06 07:03:15 +07: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