Skip to content

Commit 4f398b7

Browse files
authored
Update dotnet-desktop.yml
1 parent e4e9499 commit 4f398b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
3131
- name: Get Package Version
3232
run: |
33-
VERSION=$(grep -m1 '<Version>' Mastercard.Developer.ClientEncryption.Core/Mastercard.Developer.ClientEncryption.Core.csproj | sed -E 's/.*<Version>([^<]+)<\/Version>.*/\1/')
34-
echo $VERSION
35-
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
33+
[xml]$csproj = Get-Content Mastercard.Developer.ClientEncryption.Core/Mastercard.Developer.ClientEncryption.Core.csproj
34+
$version = $csproj.Project.PropertyGroup.Version
35+
"PACKAGE_VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
3636
3737
- name: Publish to NuGet
3838
run: |

0 commit comments

Comments
 (0)