-
Notifications
You must be signed in to change notification settings - Fork 664
Description
Prerequisites
- I have written a descriptive issue title
- I have searched issues to ensure it has not already been reported
GitVersion package
GitVersion.Tool
GitVersion version
6.0.5
Operating system
Linux
What are you seeing?
If I don't specify any +semver, it always updates the Minor version 3.8.0 to 3.9.0
I have the same configuration in another project and that behaves fine, it updates the patch version 3.8.0 to 3.8.1
INFO [25-10-21 7:44:51:44] -< End: [Using 'TaggedCommitVersionStrategy' strategy] (Took: 3.20ms) >-
INFO [25-10-21 7:44:51:44] -< Begin: [Using 'TrackReleaseBranchesVersionStrategy' strategy] >-
INFO [25-10-21 7:44:51:44] -< End: [Using 'TrackReleaseBranchesVersionStrategy' strategy] (Took: 0.02ms) >-
INFO [25-10-21 7:44:51:44] -< Begin: [Using 'VersionInBranchNameVersionStrategy' strategy] >-
INFO [25-10-21 7:44:51:44] -< End: [Using 'VersionInBranchNameVersionStrategy' strategy] (Took: 0.19ms) >-
INFO [25-10-21 7:44:51:44] Calculating base versions for 'origin/releases/scatec-dev'
INFO [25-10-21 7:44:51:44] -< Begin: [Using 'ConfiguredNextVersionVersionStrategy' strategy] >-
INFO [25-10-21 7:44:51:44] -< End: [Using 'ConfiguredNextVersionVersionStrategy' strategy] (Took: 0.02ms) >-
INFO [25-10-21 7:44:51:44] -< Begin: [Using 'MainlineVersionStrategy' strategy] >-
INFO [25-10-21 7:44:51:44] -< End: [Using 'MainlineVersionStrategy' strategy] (Took: 0.01ms) >-
INFO [25-10-21 7:44:51:44] -< Begin: [Using 'MergeMessageVersionStrategy' strategy] >-
INFO [25-10-21 7:44:51:45] -< End: [Using 'MergeMessageVersionStrategy' strategy] (Took: 1.46ms) >-
INFO [25-10-21 7:44:51:45] -< Begin: [Using 'TaggedCommitVersionStrategy' strategy] >-
INFO [25-10-21 7:44:51:45] Git tag '3.8.0': Version increment '3.8.0' +semver 'Minor' with label 'CI' based on commit 'a7bea22'.
INFO [25-10-21 7:44:51:45] Git tag '3.7.0': Version increment '3.7.0' +semver 'Minor' with label 'CI' based on commit '817a220'.
INFO [25-10-21 7:44:51:45] Git tag '3.6.0': Version increment '3.6.0' +semver 'Minor' with label 'CI' based on commit '454b48c'.
INFO [25-10-21 7:44:51:45] Git tag '3.5.0': Version increment '3.5.0' +semver 'Minor' with label 'CI' based on commit '0eadd81'.
INFO [25-10-21 7:44:51:45] Git tag '3.4.0': Version increment '3.4.0' +semver 'Minor' with label 'CI' based on commit '56d1d79'.
INFO [25-10-21 7:44:51:45] Git tag '3.3.0': Version increment '3.3.0' +semver 'Minor' with label 'CI' based on commit '31cd14c'.
INFO [25-10-21 7:44:51:45] Git tag '3.2.0': Version increment '3.2.0' +semver 'Minor' with label 'CI' based on commit '0e11268'.
INFO [25-10-21 7:44:51:45] Git tag '3.1.0': Version increment '3.1.0' +semver 'Minor' with label 'CI' based on commit 'd544885'.
INFO [25-10-21 7:44:51:45] Git tag '3.0.0': Version increment '3.0.0' +semver 'Minor' with label 'CI' based on commit '26993ad'.
INFO [25-10-21 7:44:51:45] Git tag '2.1.0': Version increment '2.1.0' +semver 'Minor' with label 'CI' based on commit '19e8ef2'.
INFO [25-10-21 7:44:51:45] Git tag '2.0.0': Version increment '2.0.0' +semver 'Minor' with label 'CI' based on commit '310c037'.
INFO [25-10-21 7:44:51:45] Git tag '1.9.0': Version increment '1.9.0' +semver 'Minor' with label 'CI' based on commit '05ce6da'.
INFO [25-10-21 7:44:51:45] Git tag '1.8.0': Version increment '1.8.0' +semver 'Minor' with label 'CI' based on commit '8297ec7'.
INFO [25-10-21 7:44:51:45] Git tag '1.7.0': Version increment '1.7.0' +semver 'Minor' with label 'CI' based on commit '86650dd'.
INFO [25-10-21 7:44:51:45] Git tag '1.6.0': Version increment '1.6.0' +semver 'Minor' with label 'CI' based on commit 'e1857d9'.
INFO [25-10-21 7:44:51:45] Git tag '1.5.0': Version increment '1.5.0' +semver 'Minor' with label 'CI' based on commit '357ed2b'.
INFO [25-10-21 7:44:51:45] Git tag '1.4.0': Version increment '1.4.0' +semver 'Minor' with label 'CI' based on commit '3ecdc72'.
INFO [25-10-21 7:44:51:45] Git tag '1.3.0': Version increment '1.3.0' +semver 'Minor' with label 'CI' based on commit '8826174'.
INFO [25-10-21 7:44:51:45] Git tag '1.2.0': Version increment '1.2.0' +semver 'Minor' with label 'CI' based on commit 'ef963d9'.
INFO [25-10-21 7:44:51:45] Git tag '1.1.0': Version increment '1.1.0' +semver 'Minor' with label 'CI' based on commit 'b29c55f'.
INFO [25-10-21 7:44:51:45] Git tag '1.0.0': Version increment '1.0.0' +semver 'Minor' with label 'CI' based on commit 'f51335b'.
INFO [25-10-21 7:44:51:45] Git tag '0.2.0': Version increment '0.2.0' +semver 'Minor' with label 'CI' based on commit '8f1be99'.
INFO [25-10-21 7:44:51:45] Git tag '0.1.0': Version increment '0.1.0' +semver 'Minor' with label 'CI' based on commit '706a7d0'.
INFO [25-10-21 7:44:51:45] -< End: [Using 'TaggedCommitVersionStrategy' strategy] (Took: 3.13ms) >-
INFO [25-10-21 7:44:51:45] -< Begin: [Using 'TrackReleaseBranchesVersionStrategy' strategy] >-
INFO [25-10-21 7:44:51:45] -< End: [Using 'TrackReleaseBranchesVersionStrategy' strategy] (Took: 0.02ms) >-
INFO [25-10-21 7:44:51:45] -< Begin: [Using 'VersionInBranchNameVersionStrategy' strategy] >-
INFO [25-10-21 7:44:51:45] -< End: [Using 'VersionInBranchNameVersionStrategy' strategy] (Took: 0.02ms) >-
INFO [25-10-21 7:44:51:45] -< End: Fetching the base versions for version calculation... (Took: 444.82ms) >-
INFO [25-10-21 7:44:51:45] -------------------------------------------------------
INFO [25-10-21 7:44:51:45] Found multiple base versions which will produce the same SemVer (3.9.0-CI.1), taking latest source for commit counting (Git tag '3.8.0')
INFO [25-10-21 7:44:51:45] Base version used: Git tag '3.8.0': Take '3.8.0' based on commit 'a7bea22'.
INFO [25-10-21 7:44:51:45] -------------------------------------------------------
INFO [25-10-21 7:44:51:45] -< Begin: Using manual deployment workflow to calculate the incremented version. >-
INFO [25-10-21 7:44:51:45] 1 commits found between 'a7bea22' - ADES-509 Output data structures differ significantly between model-index and SemQry. (#22) and 'ea6f6bb' - ADES-508 Added mapper from ModelIndex to the Server's namespace. Fixed tests. (#23)
INFO [25-10-21 7:44:51:45] -< End: Using manual deployment workflow to calculate the incremented version. (Took: 0.98ms) >-
INFO [25-10-21 7:44:51:45] -< Begin: Getting tagged semantic versions on branch 'refs/heads/releases/scatec-dev'. TagPrefix: [vV]? and Format: Strict >-
INFO [25-10-21 7:44:51:45] -< End: Getting tagged semantic versions on branch 'refs/heads/releases/scatec-dev'. TagPrefix: [vV]? and Format: Strict (Took: 1.53ms) >-
INFO [25-10-21 7:44:51:46] -< Begin: Write version variables to cache file /home/runner/work/dataengineering-datasource-service/dataengineering-datasource-service/.git/gitversion_cache/5EA80D014088ED12F25EDCC40CE2194ABC9FDDB1 >-
INFO [25-10-21 7:44:51:49] -< End: Write version variables to cache file /home/runner/work/dataengineering-datasource-service/dataengineering-datasource-service/.git/gitversion_cache/5EA80D014088ED12F25EDCC40CE2194ABC9FDDB1 (Took: 32.04ms) >-
Executing GenerateSetVersionMessage for 'GitHubActions'.Executing GenerateBuildLogOutput for 'GitHubActions'.
Writing version variables to $GITHUB_ENV file for 'GitHubActions'.
"AssemblySemFileVer": "3.9.0.0",
"AssemblySemVer": "3.9.0.0",
"BranchName": "CI",
"BuildMetaData": 1,
"CommitDate": "2025-10-21",
"CommitsSinceVersionSource": 1,
"EscapedBranchName": "CI",
"FullBuildMetaData": "1.Branch.CI.Sha.ea6f6bbeb433150289ad74d0bec2ad3ad44305db",
"FullSemVer": "3.9.0-CI.1+1",
"InformationalVersion": "3.9.0-CI.1+1.Branch.CI.Sha.ea6f6bbeb433150289ad74d0bec2ad3ad44305db",
"Major": 3,
"MajorMinorPatch": "3.9.0",
"Minor": 9,
"Patch": 0,
"PreReleaseLabel": "CI",
"PreReleaseLabelWithDash": "-CI",
"PreReleaseNumber": 1,
"PreReleaseTag": "CI.1",
"PreReleaseTagWithDash": "-CI.1",
"SemVer": "3.9.0-CI.1",
"Sha": "ea6f6bbeb433150289ad74d0bec2ad3ad44305db",
"ShortSha": "ea6f6bb",
"UncommittedChanges": 0,
"VersionSourceSha": "a7bea22f5f49ec2749b63175cd3c130421c799c2",
"WeightedPreReleaseNumber": 1
What is expected?
I expected the MajorMinorPatch to be 3.8.1
Steps to Reproduce
in Yaml as a Github Action
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v3.0.0
with:
versionSpec: "6.0.5"#major-version-bump-message: '+semver:\s?(breaking|major)'
#minor-version-bump-message: '+semver:\s?(feature|minor)'
#patch-version-bump-message: '+semver:\s?(fix|patch)'
- name: Determine Version
id: version_step
uses: gittools/actions/gitversion/execute@v3.0.0
RepositoryFixture Test
No response