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 aea2144 commit 1c5a1e2
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 @@ -18,7 +18,7 @@ function DeleteTags {
$response = Invoke-RestMethod -Uri $urlTags -Headers $headers -Method Get

foreach ($tag in $response) {
$tagName = $tag.ref
$tagName = $tag.url

if ($tagName -like "*$keyword*") {
$deleteUrl = "https://api.github.com/repos/$owner/$repo/git/$tagName"
Expand Down

0 comments on commit 1c5a1e2

Please sign in to comment.