disable GHES check

This commit is contained in:
Earl Warren 2024-03-21 14:05:28 +01:00 committed by Mathieu Fenniak
parent 634f93cb29
commit 1314311ddb

7
dist/index.js vendored
View file

@ -2898,12 +2898,7 @@ function getResultsServiceUrl() {
}
exports.getResultsServiceUrl = getResultsServiceUrl;
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;
}
exports.isGhes = isGhes;
function getGitHubWorkspaceDir() {