Back to the "Repos API" | Back to the navigation
https://docs.github.com/en/rest/reference/actions#list-artifacts-for-a-repository
$artifacts = $client->api('repo')->artifacts()->all('KnpLabs');
https://docs.github.com/en/rest/reference/actions#list-workflow-run-artifacts
$runArtifacts = $client->api('repo')->artifacts()->runArtifacts('KnpLabs', 'php-github-api', $runId);
https://docs.github.com/en/rest/reference/actions#get-an-artifact
$artifact = $client->api('repo')->artifacts()->show('KnpLabs', 'php-github-api', $artifactId);
https://docs.github.com/en/rest/reference/actions#delete-an-artifact
$client->api('repo')->artifacts()->delete('KnpLabs', 'php-github-api', $artifactId);
https://docs.github.com/en/rest/reference/actions#download-an-artifact
$artifactFile = $client->api('repo')->artifacts()->download('KnpLabs', 'php-github-api', $artifactId, $format = 'zip');
file_put_contents($artifactId.'.'.$format, $artifactFile);