upload-artifact@v4 / download-artifact@v4 are not supported on Gitea (GHES error). v3 has no cross-workflow artifact download, so the artifact approach is a dead end.
Fix
Revert build.yaml: remove the artifact upload step (back to its original state — no changes to the build logic).
gitops-update.yaml: on workflow_run trigger, call the Gitea API to find the tag whose commit.sha matches github.event.workflow_run.head_sha:
GET /api/v1/repos/{repo}/tags?limit=50
jq '.[] | select(.commit.sha == $sha) | .name'
Uses GITEA_TOKEN already present in the job. Add jq to the apt install step.
## Problem
`upload-artifact@v4` / `download-artifact@v4` are not supported on Gitea (GHES error). v3 has no cross-workflow artifact download, so the artifact approach is a dead end.
## Fix
- **Revert `build.yaml`**: remove the artifact upload step (back to its original state — no changes to the build logic).
- **`gitops-update.yaml`**: on `workflow_run` trigger, call the Gitea API to find the tag whose `commit.sha` matches `github.event.workflow_run.head_sha`:
```
GET /api/v1/repos/{repo}/tags?limit=50
jq '.[] | select(.commit.sha == $sha) | .name'
```
Uses `GITEA_TOKEN` already present in the job. Add `jq` to the apt install step.
upload/download-artifact@v4 is not supported on Gitea (GHES). Replace
with a direct Gitea API call in gitops-update: look up the tag name
whose commit SHA matches workflow_run.head_sha. Reverts the artifact
upload from build.yaml; no changes to build.yaml logic.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
kacerr
merged commit 96c14f0b22 into main2026-06-12 19:59:41 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
upload-artifact@v4/download-artifact@v4are not supported on Gitea (GHES error). v3 has no cross-workflow artifact download, so the artifact approach is a dead end.Fix
build.yaml: remove the artifact upload step (back to its original state — no changes to the build logic).gitops-update.yaml: onworkflow_runtrigger, call the Gitea API to find the tag whosecommit.shamatchesgithub.event.workflow_run.head_sha:GITEA_TOKENalready present in the job. Addjqto the apt install step.