Skip to content

Commit ccfd35c

Browse files
committed
updates to appveyor
1 parent 0e0500a commit ccfd35c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

appveyor.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,20 @@ cache:
99
- packages -> paket.dependencies
1010

1111
init:
12-
- ps: >
12+
- ps: |
1313
git config --global core.autocrlf input
1414
1515
if ($env:APPVEYOR_REPO_TAG -eq "true")
16-
1716
{
18-
19-
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
20-
17+
$ver = $env:APPVEYOR_REPO_TAG_NAME
18+
if($ver.StartsWith("v") -eq $true) { $ver = $version.Substring(1) }
19+
Update-AppveyorBuild -Version $ver
2120
}
22-
2321
else
24-
2522
{
2623
$ver = $env:APPVEYOR_BUILD_VERSION
2724
$commit = $env:APPVEYOR_REPO_COMMIT.substring(0,7)
2825
Update-AppveyorBuild -Version "$ver-$commit"
29-
3026
}
3127
3228
build_script:

0 commit comments

Comments
 (0)