From 6c8731c17a7c0b1d0914155f76e7f5fd25f6e20b Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Thu, 5 Jan 2023 16:35:53 +1300 Subject: [PATCH] Try amending last commit for deployment script By including the version name in the last commit, if that commit references an issue users now know what version number to expect the fix in. --- deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 23c8ec2..915b95e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -34,7 +34,8 @@ bundle install bundle exec fastlane supply --aab app/build/outputs/bundle/release/app-release.aab git add app/build.gradle ../package.json -git commit --no-verify --message "Set versionCode=$versionCode,versionName=$major.$minor" +git commit --amend --message \ + "$(git log -1 --pretty=%B | sed " 1 s/.*/& - $major.$minor/")" git tag "$versionCode" git push origin HEAD & git push --tags