File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 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 "*-*") {
You can’t perform that action at this time.
0 commit comments