let the action run on Gitea
Check dist/ / check-dist (push) Canceled after 0s
Code scanning - action / CodeQL-Build (push) Canceled after 0s
Licensed / Check licenses (push) Canceled after 0s
Test / Build (macos-latest) (push) Canceled after 0s
Test / Build (ubuntu-latest) (push) Canceled after 0s
Test / Build (windows-latest) (push) Canceled after 0s
Test / Merge (push) Canceled after 0s
Check dist/ / check-dist (push) Canceled after 0s
Code scanning - action / CodeQL-Build (push) Canceled after 0s
Licensed / Check licenses (push) Canceled after 0s
Test / Build (macos-latest) (push) Canceled after 0s
Test / Build (ubuntu-latest) (push) Canceled after 0s
Test / Build (windows-latest) (push) Canceled after 0s
Test / Merge (push) Canceled after 0s
isGhes() reads GITHUB_SERVER_URL and takes every host but github.com and its enterprise ones for a GHES, where the v4 artifact backend is absent. On Gitea that backend is there and answers, but the check runs on the runner ahead of any request, so the upload never starts. It now returns false. See GITEA-PATCH.md. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
ea165f8d65
commit
2ea74c0637
Vendored
+4
-1
@@ -2903,7 +2903,10 @@ function isGhes() {
|
||||
const isGitHubHost = hostname === 'GITHUB.COM';
|
||||
const isGheHost = hostname.endsWith('.GHE.COM');
|
||||
const isLocalHost = hostname.endsWith('.LOCALHOST');
|
||||
return !isGitHubHost && !isGheHost && !isLocalHost;
|
||||
// Patched for Gitea. The host is neither github.com nor an enterprise one,
|
||||
// and the check would turn the upload down before it made a request — see
|
||||
// GITEA-PATCH.md
|
||||
return false;
|
||||
}
|
||||
exports.isGhes = isGhes;
|
||||
function getGitHubWorkspaceDir() {
|
||||
|
||||
Vendored
+4
-1
@@ -2903,7 +2903,10 @@ function isGhes() {
|
||||
const isGitHubHost = hostname === 'GITHUB.COM';
|
||||
const isGheHost = hostname.endsWith('.GHE.COM');
|
||||
const isLocalHost = hostname.endsWith('.LOCALHOST');
|
||||
return !isGitHubHost && !isGheHost && !isLocalHost;
|
||||
// Patched for Gitea. The host is neither github.com nor an enterprise one,
|
||||
// and the check would turn the upload down before it made a request — see
|
||||
// GITEA-PATCH.md
|
||||
return false;
|
||||
}
|
||||
exports.isGhes = isGhes;
|
||||
function getGitHubWorkspaceDir() {
|
||||
|
||||
Reference in New Issue
Block a user