Skip to content

Commit 1c5a1e2

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

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

2020
foreach ($tag in $response) {
21-
$tagName = $tag.ref
21+
$tagName = $tag.url
2222

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

0 commit comments

Comments
 (0)