2 Commits

Author SHA1 Message Date
ChristopherHX
62ac910c5d Update README.md
Some checks failed
Licensed / Check licenses (push) Has been cancelled
Code scanning - action / CodeQL-Build (push) Failing after 11s
2025-08-15 21:25:40 +02:00
ChristopherHX
81f940d004 disable ghes no support check
Some checks failed
Code scanning - action / CodeQL-Build (push) Has been cancelled
2024-01-22 11:42:57 +01:00
2 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,16 @@
# gitea-upload-artifact
This is a copy of the actions/upload-artifact@v4 that permits usage on Gitea, since it is detected as GHES by default and aborts.
```yaml
- uses: https://github.com/christopherHX/gitea-upload-artifact@v4
with:
name: my-artifact
path: path/to/artifact/world.txt
```
_act_runner has to use the external public gitea url otherwise you may get problems due to returned urls_
# `@actions/upload-artifact` # `@actions/upload-artifact`
Upload [Actions Artifacts](https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts) from your Workflow Runs. Internally powered by [@actions/artifact](https://github.com/actions/toolkit/tree/main/packages/artifact) package. Upload [Actions Artifacts](https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts) from your Workflow Runs. Internally powered by [@actions/artifact](https://github.com/actions/toolkit/tree/main/packages/artifact) package.

3
dist/index.js vendored
View File

@@ -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() {