Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Jan 14, 2025
1 parent cc7c22f commit f0b4f7f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions script/release_checklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ def check_cmake_version(repo_url, branch, version_major, version_minor, github_t
print(f" ✅ CMake version settings are correct in {cmake_file_path}")
return True

def extract_org_repo_from_url(repo_url):
"""Extract the 'org/repo' part from a GitHub URL."""
if repo_url.startswith("https://github.com/"):
return repo_url.replace("https://github.com/", "").rstrip("/")
return repo_url

def main():
github_token = get_github_token()

Expand Down Expand Up @@ -206,8 +212,7 @@ def main():
# Only check for tag if toolchain-tag is true
if check_tag:
if not tag_exists(url, toolchain, github_token):
plausible_branch = "master" if "master" in branch else "main"
print(f" ❌ Tag {toolchain} does not exist. Run `script/push_repo_release_tag.py {url} {branch_name} {toolchain}`.")
print(f" ❌ Tag {toolchain} does not exist. Run `script/push_repo_release_tag.py {extract_org_repo_from_url(url)} {branch} {toolchain}`.")
continue
print(f" ✅ Tag {toolchain} exists")

Expand Down

0 comments on commit f0b4f7f

Please sign in to comment.