Skip to content

Commit

Permalink
fix: fetch all during release
Browse files Browse the repository at this point in the history
  • Loading branch information
danabens committed May 5, 2023
1 parent 7b01519 commit 3ecc2e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ def get_version_increment_type(last_version):


def fetch_latest_and_verify(expected_version_tag):
check_output(["git", "fetch"])
check_output(["git", "fetch", "--all"])
latest_version = get_current_version()
if latest_version != expected_version_tag:
raise ValueError(f"Expected {expected_version_tag} to be latest tag, but was {latest_version}")


def get_current_version():
# ensure tags retrieved
check_output(["git", "fetch", "--all"])
# get the last release tag
stdout = check_output(["git", "describe", "--abbrev=0", "--tags"])
stdout = stdout.decode("utf-8")
Expand Down

0 comments on commit 3ecc2e7

Please sign in to comment.