mirror of
https://github.com/ChristopherHX/gitea-upload-artifact.git
synced 2025-06-03 03:27:01 +08:00
disable ghes no support check
This commit is contained in:
parent
694cdabd8b
commit
81f940d004
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -3023,8 +3023,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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user