Patch upload-artifact v7 for Gitea

This commit is contained in:
2026-05-05 16:18:35 +03:00
commit 227b403105
5 changed files with 130750 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# upload-artifact-gitea
A Gitea-compatible vendored copy of `actions/upload-artifact@v7.0.1`.
The bundled `dist/upload/index.js` is patched so `isGhes()` returns `false`.
Gitea sets `GITHUB_SERVER_URL` to the Gitea instance URL, which upstream
`actions/upload-artifact@v7` mis-detects as GitHub Enterprise Server and rejects
before it can use Gitea's artifact runtime service.
## Usage
```yaml
- uses: mo7sen/upload-artifact-gitea@v7
with:
name: meson-log.txt
path: build/meson-logs/meson-log.txt
archive: false
```
## Upstream
Based on <https://github.com/actions/upload-artifact/releases/tag/v7.0.1>.