File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,23 @@ Task("Create-Release-Notes")
128
128
129
129
if ( ! string . IsNullOrWhiteSpace ( githubToken ) )
130
130
{
131
+ IEnumerable < string > redirectedOutput ;
131
132
var releaseNotesExitCode = StartProcess (
132
133
@"tools\GitReleaseNotes\tools\gitreleasenotes.exe" ,
133
- new ProcessSettings { Arguments = ". /o build/releasenotes.md /repoToken " + githubToken } ) ;
134
+ new ProcessSettings {
135
+ Arguments = ". /o build/releasenotes.md /repoToken " + githubToken ,
136
+ RedirectStandardOutput = true
137
+ } ,
138
+ out redirectedOutput ) ;
139
+
134
140
if ( ! System . IO . File . Exists ( "./build/releasenotes.md" ) || string . IsNullOrEmpty ( System . IO . File . ReadAllText ( "./build/releasenotes.md" ) ) ) {
135
141
System . IO . File . WriteAllText ( "./build/releasenotes.md" , "No issues closed since last release" ) ;
136
142
}
137
143
138
- if ( releaseNotesExitCode != 0 ) throw new Exception ( "Failed to generate release notes" ) ;
144
+ if ( releaseNotesExitCode != 0 ) {
145
+ throw new Exception ( "Failed to generate release notes:" +
146
+ string . Join ( "\n " , redirectedOutput ) ) ;
147
+ }
139
148
}
140
149
else
141
150
{
You can’t perform that action at this time.
0 commit comments