Skip to content

Commit

Permalink
Fix GitVersion tag regex to properly identify release tags in detache…
Browse files Browse the repository at this point in the history
…d HEAD mode

Previously if you created a tag `v0.7.4-pre.1` it would resolve semver as `0.7.4-tags-v0-7-4-pre-1.1`
  • Loading branch information
pschork committed Jun 14, 2024
1 parent 7d77786 commit 362cf9f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ branches:
prevent-increment-of-merged-branch-version: true
track-merge-target: false
regex: ^master$|^main$
source-branches:
- release
source-branches: []
tracks-release-branches: true
is-release-branch: false
is-mainline: true
Expand All @@ -19,10 +18,8 @@ branches:
increment: None
prevent-increment-of-merged-branch-version: true
track-merge-target: false
regex: ^v\d+\.\d+\.\d+$|^releases?[/-]
source-branches:
- main
- release
regex: ^tags/v\d+\.\d+\.\d+(-[a-z]+\.\d+)?|^releases?[/-]
source-branches: []
tracks-release-branches: false
is-release-branch: true
is-mainline: false
Expand Down

0 comments on commit 362cf9f

Please sign in to comment.