fetch-artifact
v0.2.0
Published
Downloads the latest version of a named github artifact
Downloads
2
Readme
fetch-artifact
This package contains a simple script that will download the latest version a GitHub artifact with a given name. The downloaded artifact will be placed in the current directory.
Usage
To download the most recent artifact named my-artifact
from this repository and save the downloaded files to the current directory, run
npx fetch-artifact --repo timmorey/fetch-artifact --name my-artifact --token <my-personal-access-token> --runId 12345
Arguments
| Name | Description | Required |
| --- | --- | --- |
| repo
| The combined owner and repository name. For example, timmorey/fetch-artifact
. | yes |
| name
| The artifact name | yes |
| token
| A personal access token that has "repo" scope. | yes |
| runId
| The workflow run id that generated the artifact. | no |