Skip to content

Commit 42c1832

Browse files
authored
Update delete-tag.ps1
1 parent 1c5a1e2 commit 42c1832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

delete-tag.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function DeleteTags {
2222

2323
if ($tagName -like "*$keyword*") {
2424
$deleteUrl = "https://api.github.com/repos/$owner/$repo/git/$tagName"
25-
Invoke-RestMethod -Uri $deleteUrl -Headers $headers -Method Delete
25+
Invoke-RestMethod -Uri $tagName -Headers $headers -Method Delete
2626
Write-Host "Deleted tag: $tagName"
2727
}
2828
}

0 commit comments

Comments
 (0)