Browse Source
Merge pull request #13156 from AvaloniaUI/fix-build-baseline-version-parse
fix parsing the baseline version for api diff.
pull/13158/head
Dan Walmsley
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
nukebuild/BuildParameters.cs
|
|
|
@ -111,7 +111,7 @@ public partial class Build |
|
|
|
// VERSION
|
|
|
|
Version = b.ForceNugetVersion ?? GetVersion(); |
|
|
|
|
|
|
|
ApiValidationBaseline = b.ApiValidationBaseline ?? new Version(new Version(Version).Major, 0).ToString(); |
|
|
|
ApiValidationBaseline = b.ApiValidationBaseline ?? new Version(new Version(Version.Split('-', StringSplitOptions.None).First()).Major, 0).ToString(); |
|
|
|
UpdateApiValidationSuppression = b.UpdateApiValidationSuppression ?? IsLocalBuild; |
|
|
|
|
|
|
|
if (IsRunningOnAzure) |
|
|
|
|