ci: gate softprops release steps + add Forgejo API equivalents #5
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/a1-forgejo-ci-adapt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adapts
build-iso.ymlso it can run on the Forgejo runner registered onnullstone (label
ubuntu-24.04→catthehacker/ubuntu:act-24.04).The two
softprops/action-gh-release@v2steps cannot speak the ForgejoReleases API. They are now gated by
github.server_url == 'https://github.com'and mirrored by curl-based steps that hit
POST /api/v1/repos/{owner}/{repo}/releasesand the matching attachmentsendpoint when running on git.s8n.ru.
Behaviour matrix
github.comsoftprops/action-gh-release@v2softprops/action-gh-release@v2git.s8n.ru(Forgejo)curl ... /api/v1/.../releases(POST)curl ... /releases/{id}/assetssecrets.GITHUB_TOKENis used in both — Forgejo populates it with arepo-scoped token automatically.
Out of scope (blockers found while testing)
The first run on the new Forgejo runner failed at the
addnab/docker-run-action@v3step with
Cannot connect to the Docker daemon at unix:///var/run/docker.sock.The
docker.sockis mounted into the runner container but not into theper-job container. That is a runner-config issue and needs operator action
on the docker-compose. Not addressed in this PR.
Test plan
ci-latestrelease is created and chunks upload.🤖 Generated with Claude Code
The build-iso workflow used softprops/action-gh-release@v2 unconditionally, which only speaks the GitHub Releases REST API. When the workflow runs on the Forgejo runner registered on nullstone, those steps would fail. Add a server_url check so the GH-only path runs only on github.com, and mirror it with a curl-based step that hits the Forgejo /api/v1/releases endpoints. Behaviour: - github.com: identical to before (action-gh-release@v2). - git.s8n.ru: drop+recreate ci-latest release, upload chunked assets via the Forgejo attachments API. Tag-driven "Attach to release" path mirrored the same way. Refs: A1 build-eng task — Forgejo runner adaptation.fe3239d5edtof4ea27271d