Skip to content

Commit d949205

Browse files
committed
ugh
1 parent 3adc765 commit d949205

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/dotnet_build_release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77

88
env:
99
VERSION: ${{ github.ref_name }}
10-
VERSION_NUMBER: ${{ github.ref_name && github.ref_name.startsWith('v') && replace(github.ref_name, 'v', '') || github.ref_name }}
1110

1211

1312
jobs:
@@ -25,6 +24,16 @@ jobs:
2524
# Checkout the repo
2625
- uses: actions/checkout@v4
2726

27+
- name: Strip 'v' from tag name
28+
id: versioning
29+
run: |
30+
$version = "${{ github.ref_name }}"
31+
if ($version.StartsWith("v")) {
32+
$version = $version.Substring(1)
33+
}
34+
echo "VERSION_NUMBER=$version" >> $env:GITHUB_ENV
35+
shell: pwsh
36+
2837
- name: Setup .NET
2938
uses: actions/setup-dotnet@v4
3039
with:

0 commit comments

Comments
 (0)