Skip to content

Commit a9d3ac9

Browse files
committed
Auto-increment the build number instead of the revision when bumping versions.
1 parent 40445bc commit a9d3ac9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ jobs:
223223
Write-Host "skip_version_increment is set. Using version as-is without bumping CURRENT_VERSION."
224224
}
225225
else {
226-
# Auto-increment the revision, not the build. Real releases never occupy the revision
227-
# slot, so an auto-incremented version is self-identifying.
228-
$revision = if ($CurrentVersion.Revision -lt 0) { 0 } else { $CurrentVersion.Revision }
229-
$NextVersion = [System.Version]::new($CurrentVersion.Major, $CurrentVersion.Minor, $CurrentVersion.Build, $revision + 1).ToString(4)
226+
$NextVersion = "$($CurrentVersion.Major).$($CurrentVersion.Minor).$($CurrentVersion.Build + 1).0"
230227
Write-Host "Next version will be: $NextVersion"
231228
# Persist next version to GH Variables for future runs
232229
if ($IsLinux) {

0 commit comments

Comments
 (0)