Skip to content

Commit

Permalink
fix: new function return value is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
ArwynFr committed Oct 3, 2024
1 parent 706f021 commit 5e1ab0c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ function New-GithubSemanticVersionRelease {
"TargetVersion = $TargetVersion" | Write-Verbose

if ($PSCmdlet.ShouldProcess($TargetVersion, 'gh release create')) {
gh release create $TargetVersion --generate-notes
& gh release create $TargetVersion --generate-notes | Out-Null
}

if ($AddTags -and $PSCmdlet.ShouldProcess($TargetVersion, 'git tags major / minor versions')) {
git tag --force "v$($TargetVersion.Major).$($TargetVersion.Minor)"
git tag --force "v$($TargetVersion.Major)"
git push origin --tags --force
& git tag --force "v$($TargetVersion.Major).$($TargetVersion.Minor)"
& git tag --force "v$($TargetVersion.Major)"
& git push origin --tags --force
}

$TargetVersion
Expand Down

0 comments on commit 5e1ab0c

Please sign in to comment.