mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Reenable Github API to fetch rootfs-cache version (#4295)
This commit is contained in:
@@ -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#^.*/##' |
|
||||
|
||||
Reference in New Issue
Block a user