Closed as not planned
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.2
Operating system
Linux
What are you seeing?
When running a tag pipeline, the tag is incorrectly detected as a branch. GitVersion gets its branch name from the environment variable CI_COMMIT_REF_NAME, but this variable is set to the tag when it's running a tag pipeline.
Example:
- Tag a commit as v1.1.2
- This executes a tag pipeline in GitLab CI
- The resulting SemVer will be 1.1.3-v1-1-2.1
What is expected?
A SemVer of 1.1.2 (in this example)
Steps to Reproduce
See example in the issue description.
More details in the discussion #4183
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
No response
Metadata
Metadata
Assignees
Labels
No labels