We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0cc8fb commit f9f69b1Copy full SHA for f9f69b1
jupyter_releaser/actions/draft_release.py
@@ -36,10 +36,14 @@
36
# Capture the "since" argument in case we add tags before the second
37
# "Check Changelog"
38
# Do this before bumping the version
39
-curr_dir = os.getcwd()
40
-os.chdir(CHECKOUT_NAME)
41
-os.environ.setdefault("RH_SINCE", get_latest_tag(os.environ["RH_BRANCH"]) or "")
42
-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 ""
43
+ if since:
44
+ log(f"Capturing {since} in RH_SINCE variable")
45
+ os.environ["RH_SINCE"] = since
46
+ os.chdir(curr_dir)
47
48
run("jupyter-releaser bump-version")
49
0 commit comments