@@ -39,14 +39,14 @@ jobs:
3939 with :
4040 fetch-depth : 0
4141
42- # https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/setup/usage-examples .md#example-1
42+ # https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/setup.md#example-1
4343 - name : Set up GitVersion
4444 if : ${{ inputs.environment == 'release' }}
4545 uses :
gittools/actions/gitversion/[email protected] 4646 with :
47- versionSpec : ' 6 .x'
47+ versionSpec : ' 5 .x'
4848
49- # https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/execute/usage-examples .md#example-5
49+ # https://github.com/GitTools/actions/blob/main/docs/examples/github/gitversion/execute.md#example-1
5050 # For a list of all GitVersion Version Variables, see https://gitversion.net/docs/reference/variables
5151 - name : Use GitVersion to determine version
5252 if : ${{ inputs.environment == 'release' }}
8282
8383 - name : Build all projects in the solution
8484 run : dotnet build $SOLUTION_FILE --configuration $CONFIGURATION --no-restore
85-
85+
8686 # The xUnit test project template already integrates with coverlet.collector by default
8787 # Don't use the '--logger trx' option as it causes duplicate folders and xml files to be created
8888 - name : Test all projects in the solution
@@ -133,12 +133,12 @@ jobs:
133133 cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
134134 env :
135135 title : ' ${{ inputs.project-name }} Code Coverage Results'
136-
136+
137137 # Use either GeneratePackageOnBuild or dotnet pack, not both. See https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack
138138 - name : Create NuGet package
139139 if : ${{ inputs.environment == 'release' }}
140140 run : dotnet pack $SOLUTION_FILE -c $CONFIGURATION -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} --output './artifacts/' --no-build
141-
141+
142142 - name : Markdown workflow job summary
143143 if : ${{ inputs.environment == 'release' }}
144144 run : echo '### Packed ${{ env.Package_Names }}' >> $GITHUB_STEP_SUMMARY
0 commit comments