Skip to content

Commit c202ea2

Browse files
committed
Fix Handling of Tag Lock
1 parent bd86c18 commit c202ea2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

jupyter_releaser/actions/draft_release.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@
3030
run("pip install -e .")
3131

3232
run("jupyter-releaser prep-git")
33+
34+
# Capture the "since" argument in case we add tags before the second
35+
# "Check Changelog"
36+
# Do this before bumping the version
37+
curr_dir = os.getcwd()
38+
os.chdir(CHECKOUT_NAME)
39+
os.environ.setdefault("RH_SINCE", get_latest_tag(os.environ["RH_BRANCH"]))
40+
os.chdir(curr_dir)
41+
3342
run("jupyter-releaser bump-version")
3443

3544
if check_release:
@@ -40,13 +49,6 @@
4049

4150
run("jupyter-releaser check-changelog")
4251

43-
# Capture the "since" argument in case we add tags before the second
44-
# "Check Changelog"
45-
curr_dir = os.getcwd()
46-
os.chdir(CHECKOUT_NAME)
47-
os.environ.setdefault("RH_SINCE", get_latest_tag(os.environ["RH_BRANCH"]))
48-
os.chdir(curr_dir)
49-
5052
# Make sure npm comes before python in case it produces
5153
# files for the python package
5254
run("jupyter-releaser build-npm")

0 commit comments

Comments
 (0)