Build tags
This commit is contained in:
parent
c77e47a8c5
commit
491b9956f8
@ -1,10 +1,13 @@
|
|||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$tag = \getenv('TRAVIS_TAG');
|
||||||
|
$branch = $tag ? $tag : "dev-".\getenv("TRAVIS_BRANCH");
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
$json = \json_decode(\file_get_contents('https://repo.packagist.org/p/danog/madelineproto.json'), true);
|
$json = \json_decode(\file_get_contents('https://repo.packagist.org/p/danog/madelineproto.json'), true);
|
||||||
if ($json["packages"]["danog/madelineproto"]["dev-".\getenv("TRAVIS_BRANCH")]["source"]["reference"] === \getenv('TRAVIS_COMMIT')) {
|
\sleep(1);
|
||||||
|
if ($json["packages"]["danog/madelineproto"][$branch]["source"]["reference"] === \getenv('TRAVIS_COMMIT')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
\sleep(1);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user