From 5ac1bfa78ab7c3bad9308065dcdd9738d34eae3b Mon Sep 17 00:00:00 2001 From: IamLizu Date: Mon, 3 Jul 2023 11:35:01 +0600 Subject: [PATCH] fixes #29 --- release-tag.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/release-tag.sh b/release-tag.sh index 60adb1e..c764902 100755 --- a/release-tag.sh +++ b/release-tag.sh @@ -18,6 +18,11 @@ fi # Run the version bumping script new_version=$($python_executable utils/bump_version.py) +# Commit the updated version +echo "Committing version $new_version" +git add pyproject.toml +git commit -S -m "release $new_version" + # Tag the release echo "Tagging version $new_version" @@ -27,12 +32,10 @@ git tag -s "$new_version" -m "release $new_version" echo "Generating changelog" git-changelog -o CHANGELOG.md - -# Commit the updated version & changelog -echo "Committing version $new_version & changelog" -git add pyproject.toml +# Commit (ammend) the changelog +echo "Committing changelog" git add CHANGELOG.md -git commit -S -m "release $new_version" +git commit --amend --no-edit # Push the commit and tag