Skip to content

Commit 806820f

Browse files
committed
Retry more for GitHub API calls
1 parent b42e430 commit 806820f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/compile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ function fetch_pear() {
55
auth_flag="-H 'Authorization: token $GITHUB_TOKEN'"
66
fi
77

8-
latest_tag=$(curl -sSfL --retry 5 --retry-delay 60 "${auth_flag}" https://api.github.com/repos/pear/pearweb_phars/releases/latest | jq -r .tag_name)
9-
curl -sSfL "${auth_flag}" --retry 2 --retry-delay 60 -O https://raw.githubusercontent.com/pear/pearweb_phars/${latest_tag}/go-pear.phar
8+
latest_tag=$(curl -sSfL --retry 20 "${auth_flag}" https://api.github.com/repos/pear/pearweb_phars/releases/latest | jq -r .tag_name)
9+
curl -sSfL "${auth_flag}" --retry 20 -O https://raw.githubusercontent.com/pear/pearweb_phars/${latest_tag}/go-pear.phar
1010

1111
if [ ! -f go-pear.phar ]; then
1212
echo "Latest PEAR tarball not found"

0 commit comments

Comments
 (0)