File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ function New-DraftRelease {
353
353
$Changelog = (Get-FirstChangelog - RepositoryName $RepositoryName ) -join " `n "
354
354
$ReleaseParams = @ {
355
355
Draft = $true
356
+ # NOTE: We rely on GitHub to create the tag.
356
357
Tag = " v$Version "
357
358
Committish = " release/v$Version "
358
359
Name = " v$Version "
@@ -361,17 +362,6 @@ function New-DraftRelease {
361
362
# TODO: Pass -WhatIf and -Confirm parameters correctly.
362
363
}
363
364
364
- if ($PSCmdlet.ShouldProcess (" $RepositoryName /v$Version " , " git tag" )) {
365
- # NOTE: This a side effect neccesary for Git operations to work.
366
- Push-Location - Path " $PSScriptRoot /../../$RepositoryName "
367
- if (-not (git show-ref -- tags " v$Version " )) {
368
- git tag " v$Version "
369
- } else {
370
- Write-Warning " git tag $RepositoryName /v$Version already exists!"
371
- }
372
- Pop-Location
373
- }
374
-
375
365
$Repo = Get-GitHubRepository - OwnerName PowerShell - RepositoryName $RepositoryName
376
366
$Release = $Repo | New-GitHubRelease @ReleaseParams
377
367
You can’t perform that action at this time.
0 commit comments