From 614611d5ba7baf72b3c8805836fa6c4dafeabaf3 Mon Sep 17 00:00:00 2001 From: bhaveshpawar07 Date: Thu, 30 Jun 2022 17:05:01 +0530 Subject: [PATCH] changed the code to update the latest tag value to env. --- scripts/actions/generate_new_version_code.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/actions/generate_new_version_code.sh b/scripts/actions/generate_new_version_code.sh index f7dfb1d1..ec2ab400 100755 --- a/scripts/actions/generate_new_version_code.sh +++ b/scripts/actions/generate_new_version_code.sh @@ -18,14 +18,15 @@ fi echo "New Version Code:$currentVersionCode" echo "Version Name: $currentVersionName" -new_tag="v$currentVersionName($currentVersionCode)" # New tag becomes v1.0(3) -echo "New Tag: $new_tag" -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 +new_tag="v$currentVersionName($currentVersionCode)" # New tag becomes v1.0(3) +echo "New Tag: $new_tag" +echo "NEW_TAG=$new_tag" >> $GITHUB_ENV # Setting this for use later + # For Mac OS un comment the below line . #sed -i '' "s/\(versionCode[[:space:]]*=[[:space:]]*\)[0-9]*/\\1${currentVersionCode}/" $GITHUB_WORKSPACE/app/app.gradle.kts