Skip to content

Commit ece4b73

Browse files
authored
Add logic to generate upcoming-breaking-changes.md after bump verion in minor release. (#19344)
Co-authored-by: wyunchi-ms <[email protected]>
1 parent e0a26e6 commit ece4b73

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/RunVersionController.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ function Bump-AzVersion
274274

275275
Update-ModuleManifest -Path "$PSScriptRoot\Az\Az.psd1" -ModuleVersion $newVersion -ReleaseNotes $releaseNotes
276276
Update-ChangeLog -Content $changeLog -RootPath $rootPath
277+
return $versionBump
277278
}
278279

279280
function Generate-AzPreview
@@ -421,7 +422,14 @@ switch ($PSCmdlet.ParameterSetName)
421422
Write-Host executing dotnet $PSScriptRoot/../artifacts/VersionController/VersionController.Netcore.dll
422423
dotnet $PSScriptRoot/../artifacts/VersionController/VersionController.Netcore.dll
423424

424-
Bump-AzVersion
425+
$versionBump = Bump-AzVersion
426+
427+
# We need to generate the upcoming-breaking-changes.md after the process of bump version in minor release
428+
if ([PSVersion]::MINOR -Eq $versionBump)
429+
{
430+
Import-Module $PSScriptRoot/BreakingChanges/GetUpcomingBreakingChange.ps1
431+
Export-AllBreakingChangeMessageUnderArtifacts -ArtifactsPath $PSScriptRoot/../artifacts/Release/ -MarkdownPath $PSScriptRoot/../documentation/breaking-changes/upcoming-breaking-changes.md
432+
}
425433
}
426434
}
427435

0 commit comments

Comments
 (0)