From 96c602f6879d3ebeba537f7f33c2102b2f60d907 Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Sat, 1 Jun 2024 22:05:41 +0300 Subject: [PATCH] Update nuget_push.yml --- .github/workflows/nuget_push.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuget_push.yml b/.github/workflows/nuget_push.yml index 76237e3..f133462 100644 --- a/.github/workflows/nuget_push.yml +++ b/.github/workflows/nuget_push.yml @@ -17,8 +17,9 @@ jobs: - name: Extract Version from csproj id: get_version run: | - version=$(grep '' ./src/Aptabase.Maui.csproj | sed -n 's/.*\(.*\)<\/Version>.*/\1/p') - echo "PackageVersion=$version" >> $GITHUB_ENV + $version = Select-String -Path "./src/Aptabase.Maui.csproj" -Pattern '(.*)' | ForEach-Object { $_.Matches.Groups[1].Value } + echo "PackageVersion=$version" | Out-File -Append -FilePath $env:GITHUB_ENV + shell: powershell - name: Build and Publish run: |