Skip to content

Commit

Permalink
Merge pull request #39 from wednesday-solutions/cd_corrections
Browse files Browse the repository at this point in the history
Change order of generating tag and versionCode bump
  • Loading branch information
gtxtreme authored Feb 14, 2022
2 parents a2f9d9b + a084ec6 commit 7b1e357
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/actions/generate_new_version_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ else
exit 1
fi

echo "Updating CurrentVersionCode by 1"

let "currentVersionCode=currentVersionCode+1" # Bumping versionCode By one
sed -i 's/versionCode [0-9A-Za-z]*/versionCode '$currentVersionCode'/' $GITHUB_WORKSPACE/app/app.gradle

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
sed -i 's/versionCode [0-9A-Za-z]*/versionCode '$currentVersionCode'/' $GITHUB_WORKSPACE/app/app.gradle



0 comments on commit 7b1e357

Please sign in to comment.