We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac0a98 commit 2252f3fCopy full SHA for 2252f3f
1 file changed
appveyor.yml
@@ -40,13 +40,9 @@ init:
40
$tag_version = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
41
Write-Host "Building a tag: $tag_version";
42
43
- if ($tag_version -match '([0-9]+[\.-][0-9]+[\.-][0-9]+([-A-Za-z0-9]+)?)')
+ if ($tag_version -match '^([0-9]+\.[0-9]+\.[0-9]+)$' -Or $tag_version -match '([0-9]+[\.-][0-9]+[\.-][0-9]+-[-A-Za-z0-9]+)')
44
{
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"
+ $env:VERSION_INFORMATIONAL = "$tag_version"
50
}
51
52
else
0 commit comments