We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e9499 commit 4f398b7Copy full SHA for 4f398b7
.github/workflows/dotnet-desktop.yml
@@ -30,9 +30,9 @@ jobs:
30
31
- name: Get Package Version
32
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
+ [xml]$csproj = Get-Content Mastercard.Developer.ClientEncryption.Core/Mastercard.Developer.ClientEncryption.Core.csproj
+ $version = $csproj.Project.PropertyGroup.Version
+ "PACKAGE_VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
36
37
- name: Publish to NuGet
38
0 commit comments