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.
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
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 |