From c9f647d0107eff3207cd77587d7137664fdf7577 Mon Sep 17 00:00:00 2001 From: TerminalFi Date: Thu, 22 Jun 2023 23:09:02 -0500 Subject: [PATCH] switch to releases --- scripts/compare_tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compare_tags.py b/scripts/compare_tags.py index 8c2175d..4229a69 100644 --- a/scripts/compare_tags.py +++ b/scripts/compare_tags.py @@ -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: @@ -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()