Skip to content

Use new variable in Set-VersionInSettingsFile#1044

Merged
mazhelez merged 2 commits intomicrosoft:mainfrom
mazhelez:1041/fix-incrementversionnumber
Apr 18, 2024
Merged

Use new variable in Set-VersionInSettingsFile#1044
mazhelez merged 2 commits intomicrosoft:mainfrom
mazhelez:1041/fix-incrementversionnumber

Conversation

@mazhelez
Copy link
Collaborator

@mazhelez mazhelez commented Apr 17, 2024

Use new variable in Set-VersionInSettingsFile as variable type isn't changed.

Issue:
$newValue is of type string by default.
The assignment $newVersion = [System.Version] "$($versionNumbers -join '.')" doesn't change the variable's type and forces string comparison afterwards.

Solution: Use new variable.

Fixes #1041

freddydk
freddydk previously approved these changes Apr 18, 2024
Copy link
Contributor

@freddydk freddydk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Release note missing
and then we need to hotfix v5 I guess (AL-Go-Actions@v5.0)

@mazhelez mazhelez merged commit ff6ed57 into microsoft:main Apr 18, 2024
@mazhelez mazhelez deleted the 1041/fix-incrementversionnumber branch April 18, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IncrementVersionNumber - the new version number is less than the old version number

3 participants