summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-13 23:28:51 +0800
committerruki <[email protected]>2024-11-13 23:28:51 +0800
commit52548a1ba3a1949d3cf36d5c019a1849e3e45d17 (patch)
tree75a267207638ab99f84899d2934bb502bd3aa20d /scripts
parent3b4a8beb71f7ebce1b1e83ff4c6bd10e02ce928b (diff)
use github on action ci
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index d5238cd21..b782559e9 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