Skip to content

Commit

Permalink
switch to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
TerminalFi committed Jun 23, 2023
1 parent 70e1653 commit c9f647d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/compare_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_tags(self) -> list:

def get_latest_version(self, tags: list) -> Tuple[str, bool]:
for tag in tags:
if tag["name"].startswith("gopls/v"):
if tag["tag_name"].startswith("gopls/v"):
unparsed_version = tag["name"].split("v")[1]
version = re.search(r"(\d+\.\d+\.\d+)-?(\w+\.\d+)?", unparsed_version)
if not version:
Expand Down Expand Up @@ -84,5 +84,5 @@ def check_for_update(self):
print(f"BRANCH_NAME={branch_name}", file=fh)


url = "https://api.github.com/repos/golang/tools/tags"
url = "https://api.github.com/repos/golang/tools/releases"
VersionChecker(url=url).check_for_update()

0 comments on commit c9f647d

Please sign in to comment.