workflow: use previous tag to update version code

This commit is contained in:
j-hc
2022-07-19 00:10:05 +03:00
parent 6589b3621e
commit fd008c7762
2 changed files with 28 additions and 10 deletions

View File

@ -5,6 +5,7 @@ TEMP_DIR="temp"
GITHUB_REPO_FALLBACK="j-hc/revanced-magisk-module"
: "${GITHUB_REPOSITORY:=$GITHUB_REPO_FALLBACK}"
: "${NEXT_VER_CODE:=$(date +'%Y%m%d')}"
WGET_HEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
@ -156,7 +157,7 @@ yt_module_prop() {
echo "id=ytrv-magisk
name=YouTube ReVanced
version=v${1}
versionCode=$(date +'%Y%m%d')
versionCode=${NEXT_VER_CODE}
author=j-hc
description=mounts base.apk for YouTube ReVanced
updateJson=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/update/yt-update.json" >"${MODULE_TEMPLATE_DIR}/module.prop"
@ -166,7 +167,7 @@ music_module_prop() {
echo "id=ytmusicrv-magisk
name=YouTube Music ReVanced
version=v${1}
versionCode=$(date +'%Y%m%d')
versionCode=${NEXT_VER_CODE}
author=j-hc
description=mounts base.apk for YouTube Music ReVanced
updateJson=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/update/music-update.json" >"${MODULE_TEMPLATE_DIR}/module.prop"