Skip to content

Commit 59cad8b

Browse files
committed
fix: update bump-version.py
1 parent 23df84e commit 59cad8b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/bump-version.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
import sys
33

44
sys.path.append("../../")
5-
from clang_tools import release_tag # noqa E402
5+
from clang_tools import binary_repo, binary_tag # noqa E402
66

77

88
def get_latest_tag() -> str:
9-
response = requests.get(
10-
"https://api.github.com/repos/cpp-linter/clang-tools-static-binaries/releases/latest"
11-
)
9+
response = requests.get(f"{binary_repo}/releases/latest")
1210
return response.json()["tag_name"]
1311

1412

@@ -25,7 +23,7 @@ def update_tag(current_tag, latest_tag) -> None:
2523

2624
if __name__ == "__main__":
2725
latest_tag = get_latest_tag()
28-
current_tag = release_tag
26+
current_tag = binary_tag
2927

3028
if latest_tag != current_tag:
3129
update_tag(current_tag, latest_tag)

0 commit comments

Comments
 (0)