1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/upload-artifact.git synced 2024-11-09 10:52:39 +00:00

v4.3.1: disable GHES check

This commit is contained in:
Earl Warren 2024-03-21 13:59:27 +01:00
parent 5d5d22a312
commit 16871d9e8c
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 4 additions and 12 deletions

6
dist/merge/index.js vendored
View file

@ -3023,11 +3023,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') || hostname.endsWith('.GHE.LOCALHOST');
return !isGitHubHost && !isGheHost;
return false;
}
exports.isGhes = isGhes;
function getGitHubWorkspaceDir() {

View file

@ -3023,11 +3023,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') || hostname.endsWith('.GHE.LOCALHOST');
return !isGitHubHost && !isGheHost;
return false;
}
exports.isGhes = isGhes;
function getGitHubWorkspaceDir() {