fix: gate Gitea publish on package feed presence

This commit is contained in:
2026-08-17 00:45:55 +08:00
parent 303e64790b
commit c71a87c92a

View File

@@ -24,8 +24,8 @@ echo "target: $RELEASE_TAG ($VERSION)"
echo "gitea: $GITEA_BASE_URL"
if curl -fsS -H "Authorization: token $GITEA_TOKEN" \
"$GITEA_BASE_URL/api/v1/repos/$REPO_OWNER/$REPO_NAME/releases/tags/$RELEASE_TAG" >/dev/null 2>&1; then
echo "release $RELEASE_TAG already published on Gitea; nothing to do"
"$GITEA_BASE_URL/api/packages/$REPO_OWNER/generic/dsh-easy-desktop-updater/$VERSION/dsh-easy-desktop_${VERSION}_darwin_aarch64.app.tar.gz" >/dev/null 2>&1; then
echo "version $VERSION already published on the Gitea package feed; nothing to do"
exit 0
fi