mirror of
https://code.forgejo.org/forgejo/upload-artifact
synced 2026-09-06 16:01:45 -04:00
disable GHES check
This commit is contained in:
committed by
Mathieu Fenniak
parent
330a01c490
commit
cb8afe72b4
Vendored
+1
-6
@@ -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'];
|
||||
|
||||
Vendored
+1
-6
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user