Skip to content

Commit 57c394a

Browse files
committed
attempting to fix release pipeline #2
1 parent dec4564 commit 57c394a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ jobs:
3939
#example refs/pull/7/merge
4040
$parts = $env:GITHUB_REF.Split("/")
4141
$version=$parts[2]
42+
# remove the first letter, which is a V
43+
SET $version=%version:~1%
4244
}
4345
else {
4446
$version="0.0.$env:GITHUB_RUN_NUMBER"
45-
}
46-
#remove the letter V from teh variable
47-
set $version=%$version:v=%
47+
}
4848
echo "::set-output name=VERSION::$version"
4949
Write-Host "$env:GITHUB_EVENT_NAME ($env:GITHUB_REF) generated version $version"
5050
- name: Setup .NET core 3.1.x

0 commit comments

Comments
 (0)