This repository was archived by the owner on Mar 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
SubPointSolutions.CakeBuildTools/Scripts Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2222 "customNuspecs" : [
2323 {
2424 "Id" : " SubPointSolutions.CakeBuildTools" ,
25- "Version" : " 0.1.0-beta7 " ,
25+ "Version" : " 0.1.0-beta8 " ,
2626 "Dependencies" : [ ],
2727 "LicenseUrl" : " https://github.com/SubPointSolutions/CakeBuildTools/licence" ,
2828 "ProjectUrl" : " https://github.com/SubPointSolutions/CakeBuildTools" ,
Original file line number Diff line number Diff line change @@ -1404,6 +1404,7 @@ var defaultActionGitHubReleaseNotes = Task("Action-GitHub-ReleaseNotes")
14041404 releaseTitle = System . IO . Path . GetFileNameWithoutExtension ( defaultSolutionFilePath ) ;
14051405 }
14061406
1407+ // get releaseVersion from one of the defaultNuspecs?
14071408 if ( String . IsNullOrEmpty ( releaseVersion ) && defaultNuspecs . Count > 0 )
14081409 {
14091410 var nuSpec = defaultNuspecs . First ( ) ;
@@ -1417,9 +1418,13 @@ var defaultActionGitHubReleaseNotes = Task("Action-GitHub-ReleaseNotes")
14171418 releaseVersion = GetVersionForNuGetPackage ( id , ciBranch ) ;
14181419 }
14191420
1421+ // fall back on defaultNuspecVersion
1422+ if ( String . IsNullOrEmpty ( releaseVersion ) )
1423+ releaseVersion = defaultNuspecVersion ;
1424+
14201425 if ( String . IsNullOrEmpty ( releaseVersion ) )
14211426 {
1422- throw new Exception ( "releaseVersion is null or empty. Can't get it from 'ci.github.releaseversion' or any of NuSpec files" ) ;
1427+ throw new Exception ( "releaseVersion is null or empty. Can't get it from 'ci.github.releaseversion', any of NuSpec files or defaultNuspecVersion " ) ;
14231428 }
14241429
14251430 Information ( String . Format ( "-githubCompanyName:[{0}]" , githubCompanyName ) ) ;
You can’t perform that action at this time.
0 commit comments