Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
gift

GitHub Action

Install Released Tool

v1.0.4

Install Released Tool

gift

Install Released Tool

GitHub action for downloading, extracting, caching an executable from a GitHub release and putting it to PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Install Released Tool

uses: prantlf/[email protected]

Learn more about this action in prantlf/install-release-action

Choose a version

Install Released Tool

Latest version Dependency status

GitHub action for downloading, extracting, caching an executable from a GitHub release and putting it to PATH.

  • Simple syntax with defaults according to the best performance and practices.
  • Convenient version specification - latest or X.Y.Z or any semantic version specification.
  • An already unpacked version is cached to speed up the build pipeline.
  • GitHub workflow token is used by default.

Usage

Install jsonlint from the most recent release:

- uses: prantlf/install-release-action@v1
  with:
    repo: prantlf/v-jsonlint

Install jsonlint from the compatible patch release recent release:

- uses: prantlf/install-release-action@v1
  with:
    repo: prantlf/v-jsonlint
    version: ~0.0.1

Inputs

The following parameters can be specified using the with object:

repo

Type: String

Specify the repository in the form owner/name to download the archive with the executable from. Mandatory.

version

Type: String
Default: latest

Specify the version of the executable to download and extract. It can be latest (the latest published semantic version), or a semantic version number, plain or in the form of a git tag (usually vX.Y.Z, but sometimes only X.Y.Z), or any semantic version specification.

name

Type: String
Default: (inferred from platform archives)

Specify the name prefix of the archive to download and the name of the the executable to extract from it. If not specified, the first archive named {name}-{platform}-{architecture}.zip will be picked and the prefix name will be used.

use-cache

Type: Boolean
Default: true

Set to false to ignore the cache and always perform the full installation by downloading and unpacking a binary.

token

Type: String
Default: ${{ github.token }}

Authorization token to inspect releases and commits in the {repo} repository. Either a GitHub personal access token or the GitHub workflow token. If not provided, the environment variable GITHUB_TOKEN will be used as a fallback. And if even that is not set, the GitHub workflow token from the action-execution context will be used as default.

Outputs

The following parameters can be accessed by the github context:

version

Type: String

The actually installed version of the executable, as returned by {executable} -V., for example: 1.0.0.

bin-path

Type: String

The complete path to the directory with the extracted.

exe-path

Type: String

The complete path to the extracted executable.

used-cache

Type: Boolean

A boolean value indicating if the installation succeeded from the cache.

License

Copyright (C) 2023 Ferdinand Prantl

Licensed under the MIT License.