Skip to content

Commit

Permalink
Merge #3342
Browse files Browse the repository at this point in the history
3342: Fixes for make-release.py script r=fschutt a=fschutt



Co-authored-by: Felix Schütt <felix@wasmer.io>
  • Loading branch information
bors[bot] and fschutt authored Nov 21, 2022
2 parents b6613a4 + f07514d commit e24f7b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/make-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def make_release(version):
already_released_str = ""
for line in proc.stdout:
line = line.decode("utf-8").rstrip()
if RELEASE_VERSION in line:
if RELEASE_VERSION + "\t" in line:
already_released_str = line
break

Expand All @@ -138,10 +138,12 @@ def make_release(version):
github_link_line = ""
for line in proc.stdout:
line = line.decode("utf-8").rstrip()
if RELEASE_VERSION in line:
if "release-" + RELEASE_VERSION + "\t" in line:
github_link_line = line
break

print("github link line" + github_link_line)

if github_link_line != "":
proc = subprocess.Popen(['git','pull', "origin", "release-" + RELEASE_VERSION], stdout = subprocess.PIPE, cwd = temp_dir.name)
proc.wait()
Expand Down Expand Up @@ -213,7 +215,7 @@ def make_release(version):

for line in proc.stdout:
line = line.decode("utf-8").rstrip()
if RELEASE_VERSION in line:
if "release-" + RELEASE_VERSION + "\t" in line:
github_link_line = line
break

Expand Down Expand Up @@ -342,7 +344,7 @@ def make_release(version):
github_link_line = ""
for line in proc.stdout:
line = line.decode("utf-8").rstrip()
if RELEASE_VERSION in line:
if RELEASE_VERSION + "\t" in line:
github_link_line = line
break

Expand Down

0 comments on commit e24f7b4

Please sign in to comment.