Unverified Commit c5a32604 authored by ChristopherHX's avatar ChristopherHX Committed by GitHub
Browse files

Update index.js

parent bbbca2dd
Loading
Loading
Loading
Loading
+1 −6
Changes for dist/upload/index.js: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
@@ -82488,12 +82488,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'];