mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-29 21:10:25 +02:00
ci: bug fix
This commit is contained in:
parent
b09de3d51f
commit
1c0960fed3
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -21,14 +21,16 @@ jobs:
|
|||||||
toml_prep "$(cat config.toml)"
|
toml_prep "$(cat config.toml)"
|
||||||
|
|
||||||
is_youtube_latest() {
|
is_youtube_latest() {
|
||||||
v=$(toml_get "$(toml_get_table "YouTube")" "version") || version=""
|
t=$(toml_get_table YouTube)
|
||||||
|
v=$(toml_get "$t" "version") || v=
|
||||||
if [ "$v" = latest ]; then
|
if [ "$v" = latest ]; then
|
||||||
cur_yt=$(sed -n 's/.*YouTube: \(.*\)/\1/p' build.md | xargs)
|
cur_yt=$(sed -n 's/.*YouTube: \(.*\)/\1/p' build.md | xargs)
|
||||||
[ -z "$cur_yt" ] && return 1 # empty, fail=>dont build
|
[ -z "$cur_yt" ] && return 1 # empty, fail=>dont build
|
||||||
last_ver=$(get_apk_vers "https://www.apkmirror.com/uploads/?appcategory=youtube" | get_largest_ver)
|
aav=$(toml_get "$t" "allow-alpha-version") || aav=false
|
||||||
|
last_ver=$(get_apkmirror_vers youtube "$aav" | get_largest_ver)
|
||||||
[ -z "$last_ver" ] && return 1 # cant fetch, dont build
|
[ -z "$last_ver" ] && return 1 # cant fetch, dont build
|
||||||
echo "current yt version: $cur_yt"
|
echo "current yt version: '$cur_yt'"
|
||||||
echo "latest yt version: $last_ver"
|
echo "latest yt version: '$last_ver'"
|
||||||
[ "$cur_yt" != "$last_ver" ] # test success=>build, fail=>dont build
|
[ "$cur_yt" != "$last_ver" ] # test success=>build, fail=>dont build
|
||||||
else
|
else
|
||||||
return 1 # not experimental, dont build
|
return 1 # not experimental, dont build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user