From a4de5626ea792e5be5a157f45144de728a94c6d6 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 30 Sep 2024 17:53:13 +0100 Subject: [PATCH] Replaced pwsh syntax --- .github/workflows/pack-and-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pack-and-publish.yml b/.github/workflows/pack-and-publish.yml index 0331ffe..e676f7a 100644 --- a/.github/workflows/pack-and-publish.yml +++ b/.github/workflows/pack-and-publish.yml @@ -50,10 +50,10 @@ jobs: - name: Build run: dotnet build ${{ env.SOLUTION_DIR }} --configuration Release --no-restore - - name: Set version and trim 'v' prefix + - name: Set version and trim leading 'v' run: | - $version = "${{ github.ref_name }}" -replace '^v', '' - echo "VERSION=$version" >> $env:GITHUB_ENV + version=$(echo ${{ github.ref_name }} | sed 's/^v//') + echo "VERSION=$version" >> $GITHUB_ENV echo "Set VERSION to $version" - name: Pack