chore: Allow version override in Prepare-Release.ps1

pull/201/head
Robert Dailey 2 years ago
parent d30bd864af
commit 5b0dfe0fa6

@ -1,9 +1,11 @@
[CmdletBinding()] [CmdletBinding()]
param () param (
[string] $Version
)
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
$version = dotnet-gitversion /showvariable SemVer $version = if ($Version) { $Version } else { dotnet-gitversion /showvariable SemVer }
Update-Changelog -ReleaseVersion $version -LinkMode Automatic -LinkPattern @{ Update-Changelog -ReleaseVersion $version -LinkMode Automatic -LinkPattern @{
FirstRelease = "https://github.com/recyclarr/recyclarr/releases/tag/v{CUR}" FirstRelease = "https://github.com/recyclarr/recyclarr/releases/tag/v{CUR}"

Loading…
Cancel
Save