Skip to content

Commit

Permalink
Merge pull request #110 from fcollonval/fix/handling-since
Browse files Browse the repository at this point in the history
Fix handling of "since" parameter
  • Loading branch information
Steven Silvester authored Aug 18, 2021
2 parents d0cc8fb + f9f69b1 commit 1d37638
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 1d37638

Please sign in to comment.