Skip to content

Commit 2252f3f

Browse files
committed
using semver-valid versions for tags
1 parent cac0a98 commit 2252f3f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

appveyor.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,9 @@ init:
4040
$tag_version = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
4141
Write-Host "Building a tag: $tag_version";
4242
43-
if ($tag_version -match '([0-9]+[\.-][0-9]+[\.-][0-9]+([-A-Za-z0-9]+)?)')
43+
if ($tag_version -match '^([0-9]+\.[0-9]+\.[0-9]+)$' -Or $tag_version -match '([0-9]+[\.-][0-9]+[\.-][0-9]+-[-A-Za-z0-9]+)')
4444
{
45-
$env:VERSION_INFORMATIONAL = $tag_version
46-
}
47-
if ($tag_version -match '^([0-9]+\.[0-9]+\.[0-9]+)$')
48-
{
49-
$env:VERSION_INFORMATIONAL = "$tag_version$env:VERSION_SUFFIX"
45+
$env:VERSION_INFORMATIONAL = "$tag_version"
5046
}
5147
}
5248
else

0 commit comments

Comments
 (0)