lyn 1e7af09245 publish-package: read current link state before re-linking
Gitea's /-/link/{repo} endpoint returns HTTP 400 "invalid argument"
whenever the package already has ANY linked repo, and /-/unlink returns
the same 400 when nothing is linked. Both are non-idempotent. Fix by
GET-ing the package version first, comparing the current repository to
the target, and only unlinking/linking when the state actually needs to
change. Idempotent across repeated publishes of the same image.
2026-04-15 11:03:32 +00:00
2026-03-21 14:48:02 +00:00
Description
No description provided
220 KiB
Languages
Shell 100%