Skip to content

Commit

Permalink
Fix branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Wilms committed Dec 17, 2024
1 parent 0fc6ba0 commit f53ce84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
final_version = f"v{version.get_version(build=None)}"
print(f"release version: {final_version}")

# check if on master branch
if not "* master" in subprocess.check_output(["git", "branch"], stdin=None, stderr=None, shell=False).decode("utf8"):
raise Exception("Must be on master branch.")
# check if on main branch
if not "* main" in subprocess.check_output(["git", "branch"], stdin=None, stderr=None, shell=False).decode("utf8"):
raise Exception("Must be on main branch.")

print(" master branch: OK")
print(" main branch: OK")

# check if release version already exist
with open("solution.json", "r") as fh:
Expand Down

0 comments on commit f53ce84

Please sign in to comment.