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) <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user