diff --git a/.github/workflows/deploy-package.yml b/.github/workflows/deploy-package.yml index a18fec3eb..7d361e3e4 100644 --- a/.github/workflows/deploy-package.yml +++ b/.github/workflows/deploy-package.yml @@ -54,6 +54,12 @@ jobs: - name: Debug GitVersion config presence run: cat src/gitversion.yml + - name: Show GitVersion config + run: | + dotnet tool install --global GitVersion.Tool --version 6.0.x + export PATH="$PATH:$HOME/.dotnet/tools" + gitversion /showconfig -c src/gitversion.yml + - name: Validate preview settings run: | if [[ "${{ github.event.inputs.environment }}" == "nuget.org" ]] && \ diff --git a/src/gitversion.yml b/src/gitversion.yml index c3fc406d3..081a7b4e2 100644 --- a/src/gitversion.yml +++ b/src/gitversion.yml @@ -13,11 +13,11 @@ branches: is-mainline: true v[0-9].*: - tag: preview. + label: preview. increment: Patch .*: - tag: preview. + label: useBranchName increment: Patch source-branches: ['main', 'v[0-9].*']