use PierreMiniggio\GithubActionRunStarterAndArtifactDownloader\GithubActionRunStarterAndArtifactDownloaderFactory;
ENCRYPTION_KEY']);
$runTicket = $asyncActionRunner->startAction(
'token',
'pierreminiggio',
'remotion-test-github-action',
'render-video.yml',
[
'titleText' => 'Hello from PHP action runner',
'titleColor' => 'orange'
]
);
// $runTicket is a plain string. Store it wherever you like (a database column,
// a queue message, ...) — it's all checkAction() needs, and it never changes.
$result = $asyncActionRunner->checkAction($runTicket);
if ($result->isPending()) {
// not finished yet, check again later
} elseif ($result->isFailed()) {
// something went wrong; getFailureReason() describes what
echo $result->getFailureReason();
} else {
// isSuccessful() — artifacts have already been downloaded
$artifacts = $result->getArtifacts();
}
$actionRunner->setSleepTimeBetweenRunCreationChecks(5); // seconds, defaults to 10
$actionRunner->setNumberOfRunCreationChecksBeforeAssumingItsNotCreated(20); // defaults to 10
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.