Skip to content

Commit b06d917

Browse files
authored
Merge pull request #281 from jtpio/fix-tags
2 parents 77ace96 + b70c880 commit b06d917

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_releaser/lib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,10 @@ def extract_release(
361361
tag_name = release.tag_name
362362

363363
sha = None
364-
for tag in gh.list_tags():
364+
for tag in gh.list_tags(tag_name):
365365
if tag.ref == f"refs/tags/{tag_name}":
366366
sha = tag.object.sha
367+
break
367368
if sha is None:
368369
raise ValueError("Could not find tag")
369370

0 commit comments

Comments
 (0)