gh-artifacts-downloader

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2021 License: BSD-3-Clause Imports: 18 Imported by: 0

README

Github Actions Artifact Downloader

This is a small tool that downloads artifacts from GitHub Actions workflow runs.

Install

Build with go

$ go install github.com/cpuguy83/gh-actions-downloader@latest

Build with Docker:

$ docker build --output=bin/ --platform=local https://github.com/cpuguy83/gh-artifacts-downloader.git#v0.2.0

Usage

Download all artifacts that contain TestResults in the name from the containerd/containerd repo where the action was triggered on the master branch due to a push event after the workflow run id 925745732 and put them into the out dir.

$ export GITHUB_TOKEN=XXXXXXXXXXX
$ export GITHUB_USER=cpuguy83
$ ./gh-artifacts-downloader --repo containerd/containerd --branch-filter=master --event-filter=push --output=out --patern TestResults --id 925745732

To download artifacts from a single workflow run add --single to the command line.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL