diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a9a2af4..16f8cd2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -31,13 +31,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 7.0.x - - - name: Show Tag - run: | - # Extract the tag name that triggered the event and remove the 'refs/tags/' prefix - TAG_NAME=${{ github.ref }} - echo "-->${TAG_NAME}<--" - pwd + - name: Update VersionInfo.cs with associated tag if it exists run: | # Extract the tag name that triggered the event and remove the 'refs/tags/' prefix @@ -52,7 +46,7 @@ jobs: echo "The string does not start with 'refs/tags/'." fi echo "Tag is ${tag}" - sed -i "s/DEVVERSION/${TAG_NAME}/g" VersionInfo.cs + sed -i "s/DEVVERSION/${tag}/g" VersionInfo.cs cat VersionInfo.cs - name: Restore dependencies