Skip to content

Commit d3f36e2

Browse files
authored
Update NuGet version formatting in build workflow
1 parent 4b029c2 commit d3f36e2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ jobs:
3535

3636
- name: Format NuGet version
3737
run: |
38-
nugetVersion="${{ steps.gitversion.outputs.NuGetVersion }}"
39-
nugetVersion="${nugetVersion//-/.}"
40-
echo "nugetVersion=$nugetVersion" >> $GITHUB_OUTPUT
38+
nugetVersion="${{ steps.gitversion.outputs.majorMinorPatch }}${{steps.gitversion.outputs.buildMetaData}}"
39+
echo "packageVersion=$packageVersion" >> $GITHUB_OUTPUT
4140
id: formatversion
4241

4342
- name: Display GitVersion outputs
@@ -46,7 +45,7 @@ jobs:
4645
echo "AssemblyVersion: ${{ steps.gitversion.outputs.assemblySemVer }}"
4746
echo "FileVersion: ${{ steps.gitversion.outputs.assemblySemFileVer }}"
4847
echo "NuGet Version: ${{ steps.gitversion.outputs.fullSemVer }}"
49-
echo "NuGet Version: ${{ steps.formatversion.outputs.nugetVersion }}"
48+
echo "Package Version: ${{ steps.formatversion.outputs.packageVersion }}"
5049
5150
- name: Setup .NET
5251
uses: actions/setup-dotnet@v5

0 commit comments

Comments
 (0)