mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
because it randomly fails on authorization like: https://github.com/ruby/ruby/runs/190887455 Also the backoff seems too short. Maybe we need tool/travis_retry.sh for this too. Cloning ruby/ruby does not need authorization. We don't need to use actions/checkout.
15 lines
378 B
Bash
Executable file
15 lines
378 B
Bash
Executable file
#!/bin/sh -eu
|
|
# The modified version of `travis_retry` to support custom backoffs, which is used by .travis.yml.
|
|
# https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_retry.bash
|
|
#
|
|
# Now this is also used by .github/workflow/*.yml.
|
|
|
|
for sleep in 0 ${WAITS:- 1 25 100}; do
|
|
sleep "$sleep"
|
|
|
|
echo "+ $@"
|
|
if "$@"; then
|
|
exit 0
|
|
fi
|
|
done
|
|
exit 1
|