Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ea8d715

Browse files
Fix updateVersion.ps1
1 parent 431e236 commit ea8d715

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎tools/updateVersion.ps1‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ if ($LASTEXITCODE -ne 0) {
1414
throw "There are staged changes in the repository. Please commit or reset them before running this script."
1515
}
1616

17-
if ($SemanticVersion.Major -ne $(Get-Date).Year) {
17+
if ($Version.Major -ne $(Get-Date).Year) {
1818
throw "Major version should be the current year!"
1919
}
2020

21-
if ($SemanticVersion.PreReleaseLabel) {
22-
if ($SemanticVersion.Minor % 2 -eq 0) {
21+
if ($Version.PreReleaseLabel) {
22+
if ($Version.Minor % 2 -eq 0) {
2323
throw "Minor version must be odd for pre-release!"
2424
}
2525
} else {
26-
if ($SemanticVersion.Minor % 2 -ne 0) {
26+
if ($Version.Minor % 2 -ne 0) {
2727
throw "Minor version must be even for pre-release!"
2828
}
2929
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /