Add path logging to release notes app

This commit is contained in:
Jordan Brown
2020-03-29 14:09:28 -04:00
parent 932543fa62
commit 8b3aed529c
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -10,6 +10,7 @@ if (($env:CONFIGURATION -match "Release") -And ($env:APPVEYOR_REPO_BRANCH -match
dotnet run -p "$env:APPVEYOR_BUILD_FOLDER/tools/ReleaseNotes" $env:TGSVersion
$env:TGSDraftNotes = !($?)
$releaseNotesPath = "$env:APPVEYOR_BUILD_FOLDER/tools/ReleaseNotes/release_notes.md"
Write-Host "Reading release notes from $releaseNotesPath..."
if (Test-Path $releaseNotesPath -PathType Leaf) {
$env:TGSReleaseNotes = [IO.File]::ReadAllText($releaseNotesPath)
}
+3 -2
View File
@@ -282,9 +282,10 @@ namespace ReleaseNotes
newNotes.Append(Environment.NewLine);
newNotes.Append(oldNotes);
Console.WriteLine("Writing out new release notes...");
const string OutputPath = "release_notes.md";
Console.WriteLine($"Writing out new release notes to {Path.GetFullPath(OutputPath)}...");
var releaseNotes = newNotes.ToString();
await File.WriteAllTextAsync("release_notes.md", releaseNotes).ConfigureAwait(false);
await File.WriteAllTextAsync(OutputPath, releaseNotes).ConfigureAwait(false);
if (doNotCloseMilestone)
Console.WriteLine("Not closing milestone due to parameter!");