Skip to content

Commit

Permalink
Merge pull request #63 from wednesday-solutions/ci/cd_changes
Browse files Browse the repository at this point in the history
changed the code to update the latest tag value to env.
  • Loading branch information
gtxtreme authored Jun 30, 2022
2 parents 79843d9 + 614611d commit 16a53f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/actions/generate_new_version_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 16a53f8

Please sign in to comment.