Skip to content

Commit

Permalink
[releases/25.x] Limit the minor version for baselines to 5 (#2441)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazhelez authored Dec 4, 2024
1 parent 49dfc96 commit f6a6778
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 @@ -237,7 +237,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 f6a6778

Please sign in to comment.