diff --git a/tools/VersionController/Models/VersionBumper.cs b/tools/VersionController/Models/VersionBumper.cs index 9e77a54cb500..04e85a6054ad 100644 --- a/tools/VersionController/Models/VersionBumper.cs +++ b/tools/VersionController/Models/VersionBumper.cs @@ -171,6 +171,15 @@ private string GetBumpedVersion() { versionBump = Version.MINOR; } + // for https://github.com/Azure/azure-powershell/pull/12356 + // Because of the wrong compare script in the link above, we need to avoid the minor bump when the version of Az.Accounts is 1.9.x + // So we add a special judge for it when the version is 1.9.x and the expect bump type is minor, + // we will change the type to patch so that it can work until 1.9.9.Once the version is greater or equal than 2.0.0 + // this special judge will not works anymore. + if (splitVersion[0] == 1 && splitVersion[1] == 9 && versionBump == Version.MINOR) + { + versionBump = Version.PATCH; + } } // PATCH update for preview modules (0.x.x or x.x.x-preview)