-
Notifications
You must be signed in to change notification settings - Fork 1
fix(ci): clean GitVersion cache and add version logging #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add step to clean .git/gitversion_cache directory before running GitVersion - Add step to log GitVersion version with dotnet-gitversion /version - Ensure GitVersion action is pinned to v4 with versionSpec '6.x' Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Add || true to prevent failure when cache directory doesn't exist Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI failure due to GitVersion configuration
fix(ci): clean GitVersion cache and add version logging
Jan 13, 2026
JerrettDavis
approved these changes
Jan 13, 2026
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Code Coverage |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #45 +/- ##
=======================================
Coverage ? 83.23%
=======================================
Files ? 184
Lines ? 6860
Branches ? 1164
=======================================
Hits ? 5710
Misses ? 1150
Partials ? 0
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:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
CI failing with
'Requested value 'Mainline' was not found'despite correct GitVersion.yml configuration. Root cause: stale cache from before the recent MainLine→Mainline spelling fix.Type of Change
Related Issues
Changes Made
.git/gitversion_cachebefore GitVersion execution (with error handling for missing directory)dotnet-gitversion /versionlogging step for CI visibilityTesting
Test Configuration
Checklist
Screenshots (if applicable)
N/A
Additional Context
GitVersion.yml already has correct
mode: Mainlineconfiguration. The cache cleaning step ensures fresh configuration is read on each run, preventing stale cache issues from causing CI failures.Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.