We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b1a105 commit 1bff807Copy full SHA for 1bff807
.github/workflows/build-android.yml
@@ -85,9 +85,10 @@ jobs:
85
VERSION_CODE=$(grep versionCode $GRADLE_FILE | awk '{print $2}') || error "Failed to read Android versionCode"
86
# Tack on the date including the hour and min
87
DATE_CODE=$(date '+%Y%m%d%H%M')
88
-
+ VERSION_CODE="${VERSION_CODE}.${DATE_CODE}"
89
+
90
# Update capacitor.config.json version code
- 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"
92
93
- name: npm build-mobile
94
run: npm run build-mobile
0 commit comments