fetch-artifact

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i fetch-artifact

Weekly Downloads

3

Version

0.2.0

License

ISC

Unpacked Size

3.61 kB

Total Files

4

Last publish

Collaborators

  • timmorey