1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-08 20:38:19 +02:00

Implementation of python's caching (#266)

This commit is contained in:
Dmitry Shibanov 2021-11-17 13:31:22 +03:00 committed by GitHub
parent 52636cf49a
commit 280924fbef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 126753 additions and 7699 deletions

View file

@ -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';
}