Skip to content

Commit

Permalink
Fix handling of "since" parameter
Browse files Browse the repository at this point in the history
Fixes capture of `RH_SINCE` that was disrupted by #106
  • Loading branch information
fcollonval committed Aug 18, 2021
1 parent d0cc8fb commit f9f69b1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions jupyter_releaser/actions/draft_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@
# Capture the "since" argument in case we add tags before the second
# "Check Changelog"
# Do this before bumping the version
curr_dir = os.getcwd()
os.chdir(CHECKOUT_NAME)
os.environ.setdefault("RH_SINCE", get_latest_tag(os.environ["RH_BRANCH"]) or "")
os.chdir(curr_dir)
if not os.environ.get("RH_SINCE"):
curr_dir = os.getcwd()
os.chdir(CHECKOUT_NAME)
since = get_latest_tag(os.environ["RH_BRANCH"]) or ""
if since:
log(f"Capturing {since} in RH_SINCE variable")
os.environ["RH_SINCE"] = since
os.chdir(curr_dir)

run("jupyter-releaser bump-version")

Expand Down

0 comments on commit f9f69b1

Please sign in to comment.