From 0a10760cebd7c424c5bd01d95a7dbc9d7d075296 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Wed, 4 Mar 2020 19:43:55 +0000 Subject: [PATCH] updated utils.sh --- lib/utils.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/utils.sh b/lib/utils.sh index 41f6ce80..07ca83f9 100755 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -222,7 +222,10 @@ is_latest_version(){ ci_sample(){ local versions versions="${*:-}" - if [ -n "${SAMPLE:-}" ] || is_CI; then + # longer time limits on GitHub Workflows than other CI systems like Travis so don't sample, run everything + if is_github_workflow; then + echo "$versions" + elif [ -n "${SAMPLE:-}" ] || is_CI; then if [ -n "$versions" ]; then local a IFS=' ' read -r -a a <<< "$versions" @@ -231,7 +234,6 @@ ci_sample(){ local random_index random_index="$((RANDOM % highest_index))" echo "${a[$random_index]}" - return 0 else return 1 fi