From 7242162e579396b84c6c90e3b754a5e993dde7f8 Mon Sep 17 00:00:00 2001 From: Manav Joshi Date: Mon, 16 May 2022 22:50:28 +0530 Subject: [PATCH] added comments. --- scripts/actions/generate_new_version_code.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/actions/generate_new_version_code.sh b/scripts/actions/generate_new_version_code.sh index 603ce649..f7dfb1d1 100755 --- a/scripts/actions/generate_new_version_code.sh +++ b/scripts/actions/generate_new_version_code.sh @@ -25,6 +25,11 @@ echo "NEW_TAG=$new_tag" >> $GITHUB_ENV # Setting this for use later echo "Updating CurrentVersionCode by 1 and changing file versionCode" let "currentVersionCode=currentVersionCode+1" # Bumping versionCode By one + +# For Mac OS un comment the below line . +#sed -i '' "s/\(versionCode[[:space:]]*=[[:space:]]*\)[0-9]*/\\1${currentVersionCode}/" $GITHUB_WORKSPACE/app/app.gradle.kts + +# For the linux. sed -i "s/\(versionCode[[:space:]]*=[[:space:]]*\)[0-9]*/\\1${currentVersionCode}/" $GITHUB_WORKSPACE/app/app.gradle.kts