Skip to content

Commit

Permalink
add checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender committed Dec 30, 2024
1 parent 56a8316 commit 8ddc3a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]] && \
Expand Down
4 changes: 2 additions & 2 deletions src/gitversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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].*']

Expand Down

0 comments on commit 8ddc3a4

Please sign in to comment.