diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d606061f50..1cbb5e37bf 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: if isoneof "$v" latest beta; then cur_yt=$(sed -n 's/.*YouTube: \(.*\)/\1/p' build.md | xargs) [ -z "$cur_yt" ] && return 1 # empty, fail=>dont build - if [ "$v" = beta ]; aav="true"; else aav="false"; fi + if [ "$v" = beta ]; then aav="true"; else aav="false"; fi last_ver=$(get_apkmirror_vers youtube "$aav" | get_largest_ver) [ -z "$last_ver" ] && return 1 # cant fetch, dont build echo "current yt version: '$cur_yt'" @@ -39,7 +39,7 @@ jobs: is_patches_latest() { PATCHES_SRC=$(toml_get "$(toml_get_table "")" patches-source) || PATCHES_SRC="revanced/revanced-patches" - last_patches_url=$(wget -nv --header="Authorization: token ${{ secrets.GITHUB_TOKEN }}" -O- https://api.github.com/repos/${PATCHES_SRC}/releases/latest | json_get 'browser_download_url' | grep 'jar') + last_patches_url=$(gh_req https://api.github.com/repos/${PATCHES_SRC}/releases/latest - | json_get 'browser_download_url' | grep 'jar') last_patches=${last_patches_url##*/} cur_patches=$(sed -n 's/.*Patches: \(.*\)/\1/p' build.md | xargs) diff --git a/config.toml b/config.toml index f1b8f86ca3..415b509680 100755 --- a/config.toml +++ b/config.toml @@ -12,7 +12,7 @@ enabled = true build-mode = "both" # 'both', 'apk' or 'module' excluded-patches = "debugging" # space-seperated patches to exclude (multiline strings are not supported) included-patches = "" # space-seperated patches to include (non-excluded patches are included by default) -version = "auto" # 'auto', 'latest' or a custom one like '17.40.41' +version = "auto" # 'auto', 'latest', 'beta' or a custom one like '17.40.41' exclusive-patches = false # excludes all patches by default apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube/" module-prop-name = "ytrv-magisk"