Skip to content

Commit

Permalink
fix CI version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
namazso committed Jan 31, 2021
1 parent fe8b499 commit ed8fb81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
If($Env:GITHUB_REF -match "v([0-9]*)\.([0-9]*)\.([0-9]*)") {
$IsRelease = "yes";
$Version = $Matches[0];
$VersionMinor = $Matches[1];
$VersionMajor = $Matches[2];
$VersionMajor = $Matches[1];
$VersionMinor = $Matches[2];
$VersionPatch = $Matches[3];
} Else {
$IsRelease = "no";
$Version = $Env:GITHUB_SHA;
$VersionMinor = 0;
$VersionMajor = 0;
$VersionMinor = 0;
$VersionPatch = 0;
}
Echo ("::set-output name=is_release::" + $IsRelease);
Expand Down

0 comments on commit ed8fb81

Please sign in to comment.