File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2424os .environ ["PDM_IGNORE_SAVED_PYTHON" ] = "1"
2525os .environ ["PDM_NO_LOCK" ] = "1"
2626
27+ UPSTREAM_REPO_URL = 'git@github.com:Backblaze/B2_Command_Line_Tool.git'
28+
2729CI = os .environ .get ('CI' ) is not None
2830CD = CI and (os .environ .get ('CD' ) is not None )
2931INSTALL_SDK_FROM = os .environ .get ('INSTALL_SDK_FROM' )
@@ -650,10 +652,11 @@ def make_release_commit(session):
650652
651653 session .log (
652654 f'CHANGELOG updated, changes ready to commit and push\n '
655+ f' git remote add upstream { UPSTREAM_REPO_URL !r} 2>/dev/null || git remote get-url upstream\n '
653656 f' git commit -m "release { version } "\n '
654657 f' git tag v{ version } \n '
655- f' git push {{UPSTREAM_NAME}} v{ version } \n '
656- f' git push {{UPSTREAM_NAME}} { current_branch } '
658+ f' git push upstream v{ version } \n '
659+ f' git push upstream { current_branch } '
657660 )
658661
659662
You can’t perform that action at this time.
0 commit comments