From 04a4bf8aba16d7c1e32e146c41bfeb0854b8e34e Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Thu, 4 Jun 2026 16:43:41 -0500 Subject: [PATCH] fix: pre-release bumps patch for dev/alpha/beta so each build gets unique version Without this, repeated dev releases produce the same version and Joomla won't offer the update (version not higher than installed). Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- .mokogitea/workflows/pre-release.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.mokogitea/workflows/pre-release.yml b/.mokogitea/workflows/pre-release.yml index 767312b6..7be67d50 100644 --- a/.mokogitea/workflows/pre-release.yml +++ b/.mokogitea/workflows/pre-release.yml @@ -103,12 +103,17 @@ jobs: # Strip any existing suffix from version before applying stability VERSION=$(echo "$VERSION" | sed 's/-\(dev\|alpha\|beta\|rc\)$//') - # RC and stable consolidate dev patches into a clean minor bump - # e.g. 02.33.15 → 02.34.00 (not 02.33.15-rc) + # Dev/alpha/beta: bump patch so each build gets a unique version + # RC: consolidate to next minor (02.33.xx → 02.34.00) + MAJOR=$(echo "$VERSION" | cut -d. -f1) + MINOR=$(echo "$VERSION" | cut -d. -f2) + PATCH=$(echo "$VERSION" | cut -d. -f3) case "$STABILITY" in + development|alpha|beta) + PATCH=$(printf "%02d" $((10#$PATCH + 1))) + VERSION="${MAJOR}.${MINOR}.${PATCH}" + ;; release-candidate) - MAJOR=$(echo "$VERSION" | cut -d. -f1) - MINOR=$(echo "$VERSION" | cut -d. -f2) MINOR=$(printf "%02d" $((10#$MINOR + 1))) VERSION="${MAJOR}.${MINOR}.00" ;;