Skip to content

Commit

Permalink
Merge pull request #38 from wednesday-solutions/cd_corrections
Browse files Browse the repository at this point in the history
Change regex to add wildcard
  • Loading branch information
gtxtreme authored Feb 14, 2022
2 parents b8bb213 + 8077f63 commit a92394c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/app.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ android {
def flavour = variant.flavorName
def builtType = variant.buildType.name
def versionName = variant.versionName
def versionCode 3= variant.versionCode
outputFileName = "app-${flavour}-${builtType}-${versionName}(${versionCode}).apk"
def vCode = variant.versionCode
outputFileName = "app-${flavour}-${builtType}-${versionName}(${vCode}).apk"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/actions/generate_new_version_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ 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

sed -i 's/versionCode [0-9a-zA-Z]*/versionCode '$currentVersionCode'/' $GITHUB_WORKSPACE/app/app.gradle

0 comments on commit a92394c

Please sign in to comment.