1
0
mirror of https://github.com/christopherHX/gitea-download-artifact synced 2026-05-01 01:37:47 +02:00

disable ghes no support check

This commit is contained in:
ChristopherHX
2024-01-22 11:45:36 +01:00
committed by GitHub
parent bb3fa7fd35
commit 75635f32b4

3
dist/index.js vendored
View File

@@ -2698,8 +2698,7 @@ function getResultsServiceUrl() {
} }
exports.getResultsServiceUrl = getResultsServiceUrl; exports.getResultsServiceUrl = getResultsServiceUrl;
function isGhes() { function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com'); return false;
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
} }
exports.isGhes = isGhes; exports.isGhes = isGhes;
function getGitHubWorkspaceDir() { function getGitHubWorkspaceDir() {