Skip to content

Commit 1bff807

Browse files
committed
Fixing version code update in github workflow
1 parent 3b1a105 commit 1bff807

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-android.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ jobs:
8585
VERSION_CODE=$(grep versionCode $GRADLE_FILE | awk '{print $2}') || error "Failed to read Android versionCode"
8686
# Tack on the date including the hour and min
8787
DATE_CODE=$(date '+%Y%m%d%H%M')
88-
88+
VERSION_CODE="${VERSION_CODE}.${DATE_CODE}"
89+
8990
# Update capacitor.config.json version code
90-
sed -i "" "s/versionCode .*/versionCode ${VERSION_CODE}.${DATE_CODE}/" $GRADLE_FILE || error "Failed to update Android versionCode"
91+
sed -i "" "s/versionCode .*/versionCode ${VERSION_CODE}/" $GRADLE_FILE || error "Failed to update Android versionCode"
9192
9293
- name: npm build-mobile
9394
run: npm run build-mobile

0 commit comments

Comments
 (0)