Skip to content

Commit f3d8de3

Browse files
authored
Update dotnet-desktop.yml
1 parent 8ab1eba commit f3d8de3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ jobs:
2727
# fetch-depth: 0
2828

2929
- name: Set Version Variable
30-
#if: ${{ github.ref_type == 'tag' }}
31-
#env:
32-
# TAG: ${{ github.ref_name }}
30+
if: ${{ github.ref_type == 'tag' }}
31+
env:
32+
TAG: ${{ github.ref_name }}
3333
run: |
34-
echo '"${{ github.ref_name }}" -replace '#v.#', '''
35-
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
36-
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
34+
$VERSION = $TAG -replace 'v.', ''
3735
#run: echo "VERSION=${TAG#v.#}" > $GITHUB_ENV
3836

3937
# Install the .NET Core workload

0 commit comments

Comments
 (0)