diff options
| author | ruki <[email protected]> | 2024-11-13 23:28:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-11-13 23:28:51 +0800 |
| commit | 52548a1ba3a1949d3cf36d5c019a1849e3e45d17 (patch) | |
| tree | 75a267207638ab99f84899d2934bb502bd3aa20d /scripts | |
| parent | 3b4a8beb71f7ebce1b1e83ff4c6bd10e02ce928b (diff) | |
use github on action ci
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 3 |
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 |
