fix: upgrade to GitVersion 6.x with gittools/actions v4#104
fix: upgrade to GitVersion 6.x with gittools/actions v4#104JerrettDavis merged 1 commit intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #104 +/- ##
==========================================
+ Coverage 80.87% 88.61% +7.74%
==========================================
Files 61 61
Lines 3848 3848
Branches 558 470 -88
==========================================
+ Hits 3112 3410 +298
+ Misses 511 438 -73
+ Partials 225 0 -225
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Update versionSpec from '5.x' to '6.x' (v4 requires >=6.1.0) - Replace nuGetVersionV2 output with semVer (removed in v6) - Migrate GitVersion.yml: mode: MainLine -> workflow: GitHubFlow/v1
cfcae04 to
cde22db
Compare
Code Coverage |
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s CI/release versioning setup to be compatible with gittools/actions/gitversion/*@v4 by upgrading GitVersion from 5.x to 6.x and adjusting configuration/output variables accordingly.
Changes:
- Bump GitVersion tool version in CI from
5.xto6.x. - Switch GitVersion action output usage from
nuGetVersionV2tosemVer. - Migrate GitVersion configuration from
mode: MainLinetoworkflow: GitHubFlow/v1.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
GitVersion.yml |
Updates GitVersion 6.x config format by switching to workflow: GitHubFlow/v1. |
.github/workflows/ci.yml |
Updates GitVersion setup to 6.x and switches env var assignment to use semVer output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: gittools/actions/gitversion/setup@v4 | ||
| with: | ||
| versionSpec: '5.x' | ||
| versionSpec: '6.x' |
There was a problem hiding this comment.
gittools/actions/gitversion/setup@v4 requires GitVersion >= 6.1.0 (per linked compatibility table in the PR description), but versionSpec: '6.x' still includes 6.0.*. Consider pinning the minimum explicitly (e.g., 6.1.x) so the workflow can’t ever resolve to an unsupported 6.0 release.
| versionSpec: '6.x' | |
| versionSpec: '6.1.x' |
Summary
Upgrades from GitVersion 5.x to 6.x to fix CI pipeline failure.
Root Cause
\gittools/actions/gitversion/setup@v4\ requires GitVersion >=6.1.0, but the workflow specified \�ersionSpec: '5.x'\ (resolved to 5.12.0).
Changes
uGetVersionV2\ output variable with \semVer\ (NuGetVersionV2 was removed in GitVersion 6)
Compatibility
See: https://github.com/GitTools/actions/blob/main/docs/versions.md