We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b7059 commit 05524eaCopy full SHA for 05524ea
scripts/patch-release.sh
@@ -282,6 +282,16 @@ main() {
282
283
local version="${release}.${patch_number}"
284
local previous_tag="${latest_tag:-}"
285
+
286
+ # Check if the tag already exists
287
+ if git rev-parse "refs/tags/$version" >/dev/null 2>&1; then
288
+ if [[ "$DRY_RUN" == "true" ]]; then
289
+ log_warn "Tag '$version' already exists (dry-run mode, continuing)."
290
+ else
291
+ log_error "Tag '$version' already exists. Aborting release."
292
+ exit 1
293
+ fi
294
295
echo
296
297
# Step 3: Verify branch state.
0 commit comments