We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2488e13 commit 0ee7912Copy full SHA for 0ee7912
scripts/incrementMinorVersion.ps1
@@ -0,0 +1,11 @@
1
+Push-Location -Path (Join-Path -Path $PSScriptRoot -ChildPath "..")
2
+$versionFileContent = Get-Content -Path "msgraph_beta/_version.py" -Raw
3
+$version = $versionFileContent.Split("`r`n")[0] -replace "VERSION: str = '", '' -replace "'", ''
4
+$versionParts = $version -split "\."
5
+$versionParts[1] = [int]$versionParts[1] + 1
6
+$versionParts[2] = 0
7
+$newVersion = $versionParts -join "."
8
+$versionFileContent -replace $version, $newVersion | Set-Content -Path "msgraph_beta/_version.py" -NoNewline
9
+$pyprojectFileContent = Get-Content -Path "pyproject.toml" -Raw
10
+$pyprojectFileContent -replace $version, $newVersion | Set-Content -Path "pyproject.toml" -NoNewline
11
+Pop-Location
0 commit comments