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:
parent
5d5d22a312
commit
16871d9e8c
2 changed files with 4 additions and 12 deletions
6
dist/merge/index.js
vendored
6
dist/merge/index.js
vendored
|
@ -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() {
|
||||
|
|
6
dist/upload/index.js
vendored
6
dist/upload/index.js
vendored
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue