From 3ba211cf26fa745791eab60d0056fee1cb5240f2 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Tue, 3 Feb 2026 09:11:27 -0800 Subject: [PATCH] Check for existing release before building Fail early with clear error if the specified version already exists. Co-Authored-By: Claude Opus 4.5 --- .forgejo/workflows/build-blumeops.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.forgejo/workflows/build-blumeops.yaml b/.forgejo/workflows/build-blumeops.yaml index 35668bc..6b39c3c 100644 --- a/.forgejo/workflows/build-blumeops.yaml +++ b/.forgejo/workflows/build-blumeops.yaml @@ -57,6 +57,13 @@ jobs: fi fi + # Check if this version already exists + if curl -sf "https://forge.ops.eblu.me/api/v1/repos/eblume/blumeops/releases/tags/$VERSION" > /dev/null 2>&1; then + echo "Error: Release $VERSION already exists" + echo "See: https://forge.ops.eblu.me/eblume/blumeops/releases/tag/$VERSION" + exit 1 + fi + echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "Building BlumeOps release: $VERSION"