File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ Task("Create-GitHubDraftRelease")
23
23
24
24
Task ( "Export-GitHubReleaseNotes" )
25
25
. Description ( "Export all the release notes from GitHub into a file" )
26
+ . WithCriteria < BuildInfo > ( ( ctxt , info ) => info . BuildType != BuildType . Development )
26
27
. WithCriteria < BuildInfo > ( ( ctxt , info ) => ! string . IsNullOrEmpty ( info . GitHubToken ) )
27
28
. Does < BuildInfo > ( info =>
28
29
{
30
+ // Cannot build for dev builds because GitReleaseManager will fail if there
31
+ // isn't any PR / issue on a milestone closed.
29
32
// Export last milestone to embed in apps and NuGets
30
33
string milestone = info . BuildType switch {
31
- BuildType . Development => info . WorkMilestone ,
32
34
BuildType . Preview => info . WorkMilestone ,
33
35
BuildType . Stable => $ "v{ info . Version } ",
34
36
_ => throw new Exception ( "Unknown build type for milestone" ) ,
You can’t perform that action at this time.
0 commit comments