pierreminiggio/github-action-run-starter-and-artifact-downloader
Composer 安装命令:
composer require pierreminiggio/github-action-run-starter-and-artifact-downloader
包简介
README 文档
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 );
统计信息
- 总下载量: 122
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-04-29