From 1dd103ff0f70597fac6eca4a780dd73ad83c72bd Mon Sep 17 00:00:00 2001 From: Johnny Date: Wed, 8 May 2024 16:07:14 +0200 Subject: [PATCH] variables --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ff62422..2559ce6 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -14,7 +14,7 @@ jobs: dotnet-version: 8.0.x - name: Get Version id: get_version - run: echo "::set-output name=version::$(grep -oP '(?<=)(.*)(?=)' NetPalette/NetPalette.csproj)" + run: echo "CURRENT_VERSION=$(cat NetPalette/NetPalette.csproj | grep -oP '(?<=)(.*?)(?=<\/Version>)')" >> $GITHUB_ENV - name: Build run: | dotnet workload install maui --ignore-failed-sources @@ -44,6 +44,6 @@ jobs: # access token token: ${{ secrets.GITHUB_TOKEN }} - name: Create Tag - run: git tag -a v${{ steps.get_version.outputs.version }} -m "v${{ steps.get_version.outputs.version }}" + run: git tag -a v${{ steps.get_version.outputs.CURRENT_VERSION }} -m "v${{ steps.get_version.outputs.CURRENT_VERSION }}" - name: Push Tag - run: git push origin v${{ steps.get_version.outputs.version }} \ No newline at end of file + run: git push origin v${{ steps.get_version.outputs.CURRENT_VERSION }} \ No newline at end of file