mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-15 01:52:54 +01:00
Add path logging to release notes app
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user