Compare commits
1 Commits
main
...
supergame-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6acca0642c |
13
GITEA_PATCH.md
Normal file
13
GITEA_PATCH.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Gitea compatibility patch
|
||||||
|
|
||||||
|
This branch is based on `actions/upload-artifact` v4.6.2 at
|
||||||
|
`ea165f8d65b6e75b540449e92b4886f43607fa02`.
|
||||||
|
|
||||||
|
Gitea implements the v4 artifact results service, but upstream
|
||||||
|
`@actions/artifact` classifies every non-GitHub host as unsupported GHES before
|
||||||
|
contacting that service. The compiled upload and merge entry points therefore
|
||||||
|
override `isGhes()` to return `false`.
|
||||||
|
|
||||||
|
This is the same narrow compatibility strategy documented by Gitea and used by
|
||||||
|
`christopherhx/gitea-upload-artifact@v4`. No upload, archive, retention, digest,
|
||||||
|
or transport logic is changed.
|
||||||
9
dist/merge/index.js
vendored
9
dist/merge/index.js
vendored
@@ -2898,12 +2898,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;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
exports.isGhes = isGhes;
|
exports.isGhes = isGhes;
|
||||||
function getGitHubWorkspaceDir() {
|
function getGitHubWorkspaceDir() {
|
||||||
@@ -135913,4 +135908,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
|
|||||||
/******/ module.exports = __webpack_exports__;
|
/******/ module.exports = __webpack_exports__;
|
||||||
/******/
|
/******/
|
||||||
/******/ })()
|
/******/ })()
|
||||||
;
|
;
|
||||||
|
|||||||
9
dist/upload/index.js
vendored
9
dist/upload/index.js
vendored
@@ -2898,12 +2898,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;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
exports.isGhes = isGhes;
|
exports.isGhes = isGhes;
|
||||||
function getGitHubWorkspaceDir() {
|
function getGitHubWorkspaceDir() {
|
||||||
@@ -135923,4 +135918,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
|
|||||||
/******/ module.exports = __webpack_exports__;
|
/******/ module.exports = __webpack_exports__;
|
||||||
/******/
|
/******/
|
||||||
/******/ })()
|
/******/ })()
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user