Reenable Github API to fetch rootfs-cache version (#4295)

This commit is contained in:
hzyitc
2022-10-18 00:15:35 +08:00
committed by GitHub
parent bf985575b7
commit cc87567334

View File

@@ -21,10 +21,8 @@ get_rootfs_cache_list() {
local packages_hash=$2
{
# Temportally disable Github API because we don't support to download from it
# curl --silent --fail -L "https://api.github.com/repos/armbian/cache/releases?per_page=3" | jq -r '.[].tag_name' \
# || curl --silent --fail -L https://cache.armbian.com/rootfs/list
curl --silent --fail -L https://cache.armbian.com/rootfs/list
curl --silent --fail -L "https://api.github.com/repos/armbian/cache/releases?per_page=3" | jq -r '.[].tag_name' \
|| curl --silent --fail -L https://cache.armbian.com/rootfs/list
find ${SRC}/cache/rootfs/ -mtime -7 -name "${ARCH}-${RELEASE}-${cache_type}-${packages_hash}-*.tar.zst" |
sed -e 's#^.*/##' |