lwmacct/Install GitHub Release Binary
Download, verify, extract, cache, and add a GitHub release binary to PATH
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | GitHub repository that publishes the release asset, in owner/repo format. | yes | — |
| tag | Release tag to install. Use latest for the latest stable release or latest-prerelease for the latest prerelease. | no | latest |
| github-token | GitHub token used to read release metadata and download release assets. | no | ${{ github.token }} |
| asset | Glob pattern used to select the GitHub release asset. When omitted, the current runner OS and architecture are matched automatically. | no | — |
| binary | Glob pattern used to select installed binaries. For archives, this matches one or more files inside the extracted asset. | no | — |
| checksum | Optional expected SHA256 checksum of the downloaded release asset. Accepts either sha256:<hex> or a bare hex digest. | no | — |
| cache | Set to true to cache installations for fixed release tags. Uses checksum when provided, otherwise GitHub asset metadata. | no | false |
| resolve | How to resolve release assets: auto, metadata, or direct. direct skips GitHub release metadata and requires an exact asset name. | no | auto |
| rename | Rename the installed binary. Only supported when exactly one binary is installed. | no | — |
Outputs
| name | description |
|---|---|
| release-tag | Resolved release tag. |
| asset-name | Selected release asset name. |
| install-dir | Directory where the asset was installed. |
| asset-path | Path to the cached original release asset. |
| bin-dir | First directory added to PATH. |
| binary-path | First installed binary path. |
| bin-dirs | JSON array of directories added to PATH. |
| binary-paths | JSON array of installed binary paths. |
| checksum | SHA256 checksum of the downloaded release asset. |
| cache-hit | Whether the installation was restored from cache. |
| release-download-url | Local file URL root that mirrors GitHub release download layout. |