mirror of
https://code.forgejo.org/forgejo/download-artifact
synced 2026-09-06 09:41:47 -04:00
disable GHES check
This commit is contained in:
committed by
Mathieu Fenniak
parent
634f93cb29
commit
1314311ddb
Vendored
+1
-6
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user