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.
This commit is contained in:
Brandon Presley 2023-01-05 16:35:53 +13:00
parent 6fa2bbb506
commit 6c8731c17a
1 changed files with 2 additions and 1 deletions

View File

@ -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