Skip to content

Commit ed8fb81

Browse files
committed
fix CI version detection
1 parent fe8b499 commit ed8fb81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
If($Env:GITHUB_REF -match "v([0-9]*)\.([0-9]*)\.([0-9]*)") {
2525
$IsRelease = "yes";
2626
$Version = $Matches[0];
27-
$VersionMinor = $Matches[1];
28-
$VersionMajor = $Matches[2];
27+
$VersionMajor = $Matches[1];
28+
$VersionMinor = $Matches[2];
2929
$VersionPatch = $Matches[3];
3030
} Else {
3131
$IsRelease = "no";
3232
$Version = $Env:GITHUB_SHA;
33-
$VersionMinor = 0;
3433
$VersionMajor = 0;
34+
$VersionMinor = 0;
3535
$VersionPatch = 0;
3636
}
3737
Echo ("::set-output name=is_release::" + $IsRelease);

0 commit comments

Comments
 (0)