From 68948bb06154b3dd1b0d57139eec473b236bcd12 Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Tue, 15 Jun 2021 09:54:13 -0400 Subject: [PATCH] Update the README to reference the latest version of the Docker container This change was discussed among @cisagov/team-ois here: https://github.com/cisagov/gatherer/pull/60#pullrequestreview-683086244 Also correct git comments to use the imperative mood. --- bump_version.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bump_version.sh b/bump_version.sh index 81a394f..ec9313d 100755 --- a/bump_version.sh +++ b/bump_version.sh @@ -7,6 +7,7 @@ set -o errexit set -o pipefail VERSION_FILE=src/version.txt +README_FILE=README.md HELP_INFORMATION="bump_version.sh (show|major|minor|patch|prerelease|build|finalize)" @@ -23,8 +24,10 @@ else tmp_file=/tmp/version.$$ sed "s/$old_version/$new_version/" $VERSION_FILE > $tmp_file mv $tmp_file $VERSION_FILE - git add $VERSION_FILE - git commit -m"Bumping version from $old_version to $new_version" + sed "s/$old_version/$new_version/" $README_FILE > $tmp_file + mv $tmp_file $README_FILE + git add $VERSION_FILE $README_FILE + git commit -m"Bump version from $old_version to $new_version" git push ;; finalize) @@ -33,8 +36,10 @@ else tmp_file=/tmp/version.$$ sed "s/$old_version/$new_version/" $VERSION_FILE > $tmp_file mv $tmp_file $VERSION_FILE - git add $VERSION_FILE - git commit -m"Bumping version from $old_version to $new_version" + sed "s/$old_version/$new_version/" $README_FILE > $tmp_file + mv $tmp_file $README_FILE + git add $VERSION_FILE $README_FILE + git commit -m"Bump version from $old_version to $new_version" git push ;; show)