efrecon/bin/tar installer
Quickly download and install direct binaries, or binaries extracted from tar files. This action makes it easy to install fat binaries (statically compiled, such as golang binaries), picked from known github projects, e.g. kubectl, jq, etc. The destination directory where the binaries are installed (or made available from) is automatically added to the PATH, so that the binaries are automatically made available to other steps.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| installer | Direct binary, or tar extractor installer. Must be one of bin or tar | yes | bin |
| url | URL at which to find the binary or tar file to install from | yes | "" |
| destination | Destination directory for downloaded binaries | no | ${{ runner.tool_cache }}/${{ github.repository }}/bin |
| binary | Name of the binary to place under the destination directory. When empty, this will be the basename of the extraction path. | no | "" |
| extract | When the installer type is tar, this is the path, relative the extracted tar where to find the binary to install. When empty, this will be the same as the name of the tar file, without any extension (so .tar.gz, or .tgz removed). | no | "" |
| cache | How long should installed binaries with the same name and in the same destination directory, be kept in cache before a new download will be attempted. This is best expressed as a number of seconds, but also supports simple human-readable periods such as 3d or 5 months. The default is to keep binaries for one day. | no | 1d |
| package | Path to a directory where to store the entire content of the tar file upon installation. The directory will be created if necessary. When the value of this input is not an empty string, a symbolic link to the binary will be created from the 'destination' directory (with the name 'binary') towards the (relative) path 'extract' under 'package'. | no | "" |
Outputs
| name | description |
|---|---|
| path | Location of the installed binary, empty on errors. |