Skip to content

gh program downloader

Actions
Download a release
v0.0.1
Latest
Star (1)

Tags

 (1)

Test

release-downloader

Action to download and optionally extract binaries from GitHub releases.

Usage

- uses: check-spelling/gh-program-downloader@main
  with:
    # Repository name. For example cli/cli
    # Default: ${{ github.repository }}
    repository: ''

    # Path to place file(s)
    # Default: ${{ github.workspace }}
    destination: ''

    # Pattern to select file from within the archive
    # If omitted, the entire archive is extracted
    # Default: none
    file-re: ''

    # Release version
    # Default: latest
    version: ''

    # OS to use to filter artifacts
    # Default: current OS
    os: ''

    # OS pattern to filter artifacts
    # Default: pattern based on ${{ inputs.os }}
    os-pattern: ''

    # Architecture to use to filter artifacts
    # Default: current Architecture
    arch: ''

    # Architecture pattern to filter artifacts
    # Default: pattern based on ${{ inputs.arch }}
    arch-pattern: ''

    # Personal access token (PAT) used to fetch the repository.
    # Default: ${{ github.token }}
    token: ''

    # Trace action. Set to a value to trace action
    # Default: ''
    trace:

Outputs

path

The location of the extracted item(s).

url

The url of the downloaded artifact.

Recommended permissions

None

This action doesn't need access to your repository to perform its action, so if your workflow is self contained and itself doesn't need anything from the repository, you could probably use:

permissions: {}

Accessing a release from a different repository that isn't public

If you're retrieving an artifact from a repository other than the current repository and that other repository isn't public, you'll need a token:

with:
  token: ${{ secrets.TOKEN_FOR_THAT_REPOSITORY }}

Read for your own non public repository

If you're retrieving an artifact from your repository and the repository itself is not public and you aren't providing a token, you'd need:

permissions:
  contents: read

Obviously, if your workflow is nontrivial, you may need more permissions for other steps.

License

The scripts and documentation in this project are released under the MIT License

gh program downloader is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Download a release
v0.0.1
Latest

Tags

 (1)

gh program downloader is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.