Skip to content

Commit cc7f672

Browse files
committed
APPVEYOR_REPO_TAG sniffing for $version
1 parent 12c064f commit cc7f672

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ if (Test-Path Env:\APPVEYOR_BUILD_VERSION)
1919
$Version = $env:APPVEYOR_BUILD_VERSION
2020
}
2121

22+
if (Test-Path Env:\APPVEYOR_REPO_TAG)
23+
{
24+
$Version = "$env:APPVEYOR_REPO_BRANCH".Substring(1) # trim leading "v"
25+
}
26+
2227
# https://github.com/jbake/Powershell_scripts/blob/master/Invoke-BatchFile.ps1
2328
function Invoke-BatchFile
2429
{

0 commit comments

Comments
 (0)