From 52548a1ba3a1949d3cf36d5c019a1849e3e45d17 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 13 Nov 2024 23:28:51 +0800 Subject: [PATCH] use github on action ci --- scripts/get.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/get.sh b/scripts/get.sh index d5238cd216..b782559e97 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -109,6 +109,9 @@ get_host_speed() { } get_fast_host() { + if test_eq "$GITHUB_ACTIONS" "true" || test_eq "$GITHUB_ACTIONS" "1"; then + echo "github.com" + fi speed_gitee=$(get_host_speed "gitee.com") speed_github=$(get_host_speed "github.com") if [ $speed_gitee -le $speed_github ]; then