diff --git a/delete-tag.ps1 b/delete-tag.ps1 index 10b808e..7660892 100644 --- a/delete-tag.ps1 +++ b/delete-tag.ps1 @@ -22,7 +22,7 @@ function DeleteTags { if ($tagName -like "*$keyword*") { $deleteUrl = "https://api.github.com/repos/$owner/$repo/git/$tagName" - Invoke-RestMethod -Uri $deleteUrl -Headers $headers -Method Delete + Invoke-RestMethod -Uri $tagName -Headers $headers -Method Delete Write-Host "Deleted tag: $tagName" } }