From 46a882ab7577320a727d1b88bbf5e8512c84aa44 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Fri, 23 Sep 2022 17:22:10 -0700 Subject: [PATCH] Add dry-run push --- scripts/update_changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update_changelog.py b/scripts/update_changelog.py index 8c7d26e..44043b5 100644 --- a/scripts/update_changelog.py +++ b/scripts/update_changelog.py @@ -199,9 +199,9 @@ def main(): # Push changes and tags. server = 'https://{}@github.com/{}.git'.format( GITHUB_TOKEN, GITHUB_REPOSITORY) - print('would be pushing changes to branch {} of repository {}'.format( + print('would be pushing changes to branch "{}" of repository "{}"'.format( GITHUB_REF_NAME, GITHUB_REPOSITORY)) - # repo.git.push(server, GITHUB_REF_NAME, dry_run=True) + print(local_repo.git.push(server, GITHUB_REF_NAME, dry_run=True)) if __name__ == '__main__':