Skip to content

Commit

Permalink
(maint) Add small helper script to update changelog
Browse files Browse the repository at this point in the history
This commit adds a new `update.ps1` script to update
the release notes inside the nuspec file to include the
actual changelog.
  • Loading branch information
AdmiringWorm committed Apr 7, 2022
1 parent 4030154 commit d51bccf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chocolatey-core.extension/update.ps1
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit d51bccf

Please sign in to comment.