From ee606cec4217132b926e486c2fb705db97957ac7 Mon Sep 17 00:00:00 2001 From: jose_morato Date: Thu, 19 Oct 2023 07:24:31 +0200 Subject: [PATCH] Fixed version concatenation --- .github/workflows/cd_standard.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd_standard.yaml b/.github/workflows/cd_standard.yaml index dd0ea69a..e01c49f0 100644 --- a/.github/workflows/cd_standard.yaml +++ b/.github/workflows/cd_standard.yaml @@ -514,9 +514,9 @@ jobs: run: | dotnet nuget add source "${{ github.workspace }}/nupkg" --name LocalVersion - $version = ${{ env.GitVersion_Major }}.${{ env.GitVersion_Minor }}.${{ env.GitVersion_Patch }} + $version = "${{ env.GitVersion_Major }}.${{ env.GitVersion_Minor }}.${{ env.GitVersion_Patch }}" if (-Not ([string]::IsNullOrEmpty("${{ env.GitVersion_PreReleaseLabelWithDash }}"))) { - $version = $version + "${{ env.GitVersion_PreReleaseLabelWithDash }}${{ env.GitVersion_WeightedPreReleaseNumber }}" + $version = "$version${{ env.GitVersion_PreReleaseLabelWithDash }}${{ env.GitVersion_WeightedPreReleaseNumber }}" } dotnet new --install "${{ github.workspace }}/nupkg/OpenDDSharp.Templates.$version.nupkg"