disable GHES check

This commit is contained in:
Earl Warren 2024-03-21 13:59:27 +01:00 committed by Mathieu Fenniak
parent b7c566a772
commit c2e51b3bcc
2 changed files with 2 additions and 12 deletions

View file

@ -2927,12 +2927,7 @@ function getResultsServiceUrl() {
return new URL(resultsUrl).origin;
}
function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
const isGheHost = hostname.endsWith('.GHE.COM');
const isLocalHost = hostname.endsWith('.LOCALHOST');
return !isGitHubHost && !isGheHost && !isLocalHost;
return false;
}
function getGitHubWorkspaceDir() {
const ghWorkspaceDir = process.env['GITHUB_WORKSPACE'];