Binary

  • binary.github

binary.github

This action will grab a binary from GitHub and place it in the target directory, unless a file with that name is there already.

KeyTypeOptionalDescription
actionstringnobinary.github
namestringnoname of binary locally after download
directorystringnodirectory to save the binary locally
repositorystringnoGitHub repository, as owner/repo
versionstringyestag of the release; the latest release without it, or with latest

Of the release's files, comtrya picks the one whose name matches this OS and CPU best, like tool-aarch64-apple-darwin on an Apple silicon Mac. Files for another OS are never picked. The action fails when no file fits.

When GITHUB_TOKEN is set, it's used for the GitHub API, which allows more requests per hour.

Example

- action: binary.github
  name: comtrya
  directory: /usr/local/bin
  repository: comtrya/comtrya
  version: v0.8.7