From b2db63205aa4ade7c31cab5998915d87f5b3edf3 Mon Sep 17 00:00:00 2001 From: "Kim J. Nordmo" Date: Mon, 21 Mar 2022 10:21:52 +0100 Subject: [PATCH] (maint) Add small helper script to update changelog This commit adds a new `update.ps1` script to update the release notes inside the nuspec file to include the actual changelog. --- src/chocolatey-core.extension/update.ps1 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/chocolatey-core.extension/update.ps1 diff --git a/src/chocolatey-core.extension/update.ps1 b/src/chocolatey-core.extension/update.ps1 new file mode 100644 index 0000000..d679326 --- /dev/null +++ b/src/chocolatey-core.extension/update.ps1 @@ -0,0 +1,4 @@ +Import-Module wormies-au-helpers + +$changelog = (Get-Content -Encoding UTF8 "$PSScriptRoot\CHANGELOG.md" | Select-Object -Skip 2) -join "`n" +Update-Metadata -key 'releaseNotes' -value $changelog -NuspecFile "$PSScriptRoot\chocolatey-core.extension.nuspec" \ No newline at end of file