Skip to content

Commit 0a55bb9

Browse files
authored
Merge pull request Romanitho#1101 from Romanitho/copilot/review-nightly-builds-process
Fix nightly builds to use chronological tag sorting instead of version sorting
2 parents 129842d + 4a9a8b2 commit 0a55bb9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/GitFlow_Nightly-builds.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ jobs:
4747
# Initialize BUILD_NEEDED with default value
4848
$BUILD_NEEDED = $false
4949
50-
# Get the latest release tag to determine release type
51-
$LATEST_TAG = git tag -l --sort=-version:refname | Select-Object -First 1
52-
Write-Host "`n[INFO] Latest release tag: $LATEST_TAG" -ForegroundColor Green
50+
# Get the latest release tag (chronologically, not by version number)
51+
# Note: We use -creatordate to get the most recently created tag, whether stable or prerelease
52+
# This ensures we compare against the actual latest release, not a version-sorted one
53+
$LATEST_TAG = git tag -l --sort=-creatordate | Select-Object -First 1
54+
Write-Host "`n[INFO] Latest release tag (by date): $LATEST_TAG" -ForegroundColor Green
5355
5456
# Determine release type based on previous tag
5557
if ($LATEST_TAG -like "*-*") {

0 commit comments

Comments
 (0)