gh-purge-artifacts

command
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 13 Imported by: 0

README

gh-purge-artifacts

Purge GitHub Actions artifacts.

Installation

go get github.com/pmatseykanets/gh-tools/cmd/gh-purge-artifacts

Usage

Usage: gh-purge-artifacts [flags] [owner][/repo]
  owner         Repository owner (user or organization)
  repo          Repository

Flags:
  -help         Print this information and exit
  -dry-run      Dry run
  -repo         The pattern to match repository names
  -token        Prompt for an Access Token
  -version      Print the version and exit

Environment variables

GHTOOLS_TOKEN and GITHUB_TOKEN in the order of precedence can be used to set a GitHub access token.

Examples

Single repository mode:

gh-purge-artifacts owner/repo

Purge artifacts in all repositories

gh-purge-artifacts owner

Purge artifacts in repositories starting with 'api'

gh-purge-artifacts -repo '^api' owner

Dry-run mode. List found atifacts but don't purge.

gh-purge-artifacts -dry-run owner

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