Skip to content

Commit

Permalink
[releases/24.x] Limit the minor version for baselines to 5 (#2440)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazhelez authored Dec 4, 2024
1 parent 96b5166 commit 9996a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/scripts/EnlistmentHelperFunctions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function Get-PackageLatestVersion() {
if ($PackageName -eq "AppBaselines-BCArtifacts") {
# For app baselines, use the previous minor version as minimum version
if ($majorMinorVersion.Minor -gt 0) {
$minimumVersion = "$($majorMinorVersion.Major).$($majorMinorVersion.Minor - 1)"
$minimumVersion = "$($majorMinorVersion.Major).$([Math]::Min($majorMinorVersion.Minor - 1, 5))" # limit the minor version to 5, as it is the maximum minor version for SaaS
} else {
$minimumVersion = "$($majorMinorVersion.Major - 1)"
}
Expand Down

0 comments on commit 9996a6c

Please sign in to comment.