Download the PHP package pierreminiggio/github-action-run-starter-and-artifact-downloader without Composer

On this page you can find all versions of the php package pierreminiggio/github-action-run-starter-and-artifact-downloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package github-action-run-starter-and-artifact-downloader

Install using composer :

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 :

Async usage

runActionAndGetArtifacts is synchronous : it blocks your script until the run finishes, which can be minutes. If you'd rather start a run and check on it later (from a cron job, a queue worker, a webhook handler, ...), use GithubActionAsyncRunStarterAndArtifactDownloaderFactory::makeAsync() instead.

It needs a secret encryption key of your choosing, used to encrypt/decrypt the run tickets described below. Keep it out of source control (env var, secret manager, ...) : anyone who has it can decrypt a stored ticket back into a raw Github token.

startAction also accepts a $ref (defaults to 'main') and a $deleteAfterDownloading (defaults to false) parameter, with the exact same meaning as on runActionAndGetArtifacts.

startAction still blocks briefly (a handful of short polls, governed by the same two settings as the sync class, see below) while it locates the run it just dispatched on Github — it does not wait for the run to finish.

Later — from any process, as often as you like — check on the run using the stored ticket :

checkAction never sleeps and never blocks waiting on the run — it makes a single API call to check the run's status and returns immediately, whatever the outcome.

Tuning the run-creation checks

Both the sync and the async class dispatch a run and then poll Github until they can tell which run was just created (Github's API doesn't hand back a run id directly when you dispatch a workflow). Two settings control that polling, with the same defaults on both classes :


All versions of github-action-run-starter-and-artifact-downloader with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pierreminiggio/github-action-run-starter-and-artifact-downloader contains the following files

Loading the files please wait ...