mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
Merge pull request #877 from crazywhalecc/franken-retries
retry fetching frankenphp release info
This commit is contained in:
commit
97b18e9121
@ -271,6 +271,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
$releaseInfo = json_decode(Downloader::curlExec(
|
$releaseInfo = json_decode(Downloader::curlExec(
|
||||||
'https://api.github.com/repos/php/frankenphp/releases/latest',
|
'https://api.github.com/repos/php/frankenphp/releases/latest',
|
||||||
hooks: [[CurlHook::class, 'setupGithubToken']],
|
hooks: [[CurlHook::class, 'setupGithubToken']],
|
||||||
|
retries: 3,
|
||||||
), true);
|
), true);
|
||||||
$frankenPhpVersion = $releaseInfo['tag_name'];
|
$frankenPhpVersion = $releaseInfo['tag_name'];
|
||||||
$libphpVersion = $this->getPHPVersion();
|
$libphpVersion = $this->getPHPVersion();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user