Skip to content

Commit

Permalink
Update delete-tag.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamHS authored Apr 8, 2024
1 parent 1c5a1e2 commit 42c1832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delete-tag.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down

0 comments on commit 42c1832

Please sign in to comment.