Configure Woo Subscriptions versions for Circle CI

[MAILPOET-3471]
This commit is contained in:
Rostislav Wolny
2021-04-14 13:18:51 +02:00
committed by Veljko V
parent 01ef570c42
commit 726cbf4679
2 changed files with 16 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class GithubClient {
}
private function getRelease($tag = null) {
$path = 'releases/' . ($tag ? "tags/$tag" : 'latest');
$path = 'releases/' . ($tag && $tag !== 'latest' ? "tags/$tag" : 'latest');
$response = $this->httpClient->get($path);
return json_decode($response->getBody()->getContents(), true);
}