From 8b3aed529ca7c4e9faafbb39df0834ac96c4b148 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 29 Mar 2020 14:09:28 -0400 Subject: [PATCH] Add path logging to release notes app --- build/prep_deployment.ps1 | 1 + tools/ReleaseNotes/Program.cs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build/prep_deployment.ps1 b/build/prep_deployment.ps1 index a00431bff8..edd3c389ad 100644 --- a/build/prep_deployment.ps1 +++ b/build/prep_deployment.ps1 @@ -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) } diff --git a/tools/ReleaseNotes/Program.cs b/tools/ReleaseNotes/Program.cs index c62af92615..167d47543e 100644 --- a/tools/ReleaseNotes/Program.cs +++ b/tools/ReleaseNotes/Program.cs @@ -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!");