pierreminiggio / github-action-run-starter-and-artifact-downloader
There is no license information available for the latest version (3.0.0) of this package.
Package info
github.com/pierreminiggio/php-github-action-run-starter-and-artifact-downloader
pkg:composer/pierreminiggio/github-action-run-starter-and-artifact-downloader
3.0.0
2026-06-20 09:13 UTC
Requires
- php: >=7.4.0
- pierreminiggio/github-action-artifact-downloader: ^2.0
- pierreminiggio/github-action-run-artifacts-lister: ^2.0
- pierreminiggio/github-action-run-creator: ^2.0
- pierreminiggio/github-action-run-deleter: ^1.0
- pierreminiggio/github-action-run-detailer: ^2.0
- pierreminiggio/github-action-runs-lister: ^4.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Install using composer :
composer require pierreminiggio/github-action-run-starter-and-artifact-downloader
use PierreMiniggio\GithubActionRunStarterAndArtifactDownloader\GithubActionRunStarterAndArtifactDownloaderFactory; require __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; $actionRunner = (new GithubActionRunStarterAndArtifactDownloaderFactory())->make(); $artifacts = $actionRunner->runActionAndGetArtifacts( 'token', 'pierreminiggio', 'remotion-test-github-action', 'render-video.yml', 3, 0, [ 'titleText' => 'Hello from PHP action runner', 'titleColor' => 'orange' ] ); var_dump($artifacts);
runActionAndGetArtifacts also accepts a $ref (defaults to 'main') and a $deleteAfterDownloading (defaults to false) parameter. When $deleteAfterDownloading is set to true, the run (and, as a consequence, its artifacts) is deleted from Github once the artifacts have been successfully downloaded :
$artifacts = $actionRunner->runActionAndGetArtifacts( 'token', 'pierreminiggio', 'remotion-test-github-action', 'render-video.yml', 3, 0, [ 'titleText' => 'Hello from PHP action runner', 'titleColor' => 'orange' ], 'main', true );