Skip to content

Commit 90330b7

Browse files
committed
attempting to fix release pipeline #3
1 parent 57c394a commit 90330b7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ jobs:
3636
id: versioner
3737
run: |
3838
if($env:GITHUB_EVENT_NAME -like "release") {
39-
#example refs/pull/7/merge
39+
#example refs/tags/v2.0.33
4040
$parts = $env:GITHUB_REF.Split("/")
4141
$version=$parts[2]
42-
# remove the first letter, which is a V
42+
# remove the V from the version, .net builder doesn't accept strings
43+
$version = $version.Replace("v", "")
4344
SET $version=%version:~1%
4445
}
4546
else {

0 commit comments

Comments
 (0)