Skip to content

Commit

Permalink
use github on action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 13, 2024
1 parent 3b4a8be commit 52548a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52548a1

Please # to comment.