From 42c1832b7a37e2e125ad58ee61cc1c4621c3ad72 Mon Sep 17 00:00:00 2001 From: ShivamHS <140150882+ShivamHS@users.noreply.github.com> Date: Mon, 8 Apr 2024 20:09:24 +0530 Subject: [PATCH] Update delete-tag.ps1 --- delete-tag.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } }