Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattdowdell/go-installer
A GitHub Action for installing and caching Go binaries.
https://github.com/mattdowdell/go-installer
actions
Last synced: 4 days ago
JSON representation
A GitHub Action for installing and caching Go binaries.
- Host: GitHub
- URL: https://github.com/mattdowdell/go-installer
- Owner: mattdowdell
- License: mit
- Created: 2025-01-08T09:11:19.000Z (9 days ago)
- Default Branch: main
- Last Pushed: 2025-01-09T08:23:24.000Z (8 days ago)
- Last Synced: 2025-01-09T09:38:29.838Z (8 days ago)
- Topics: actions
- Language: Shell
- Homepage: https://github.com/marketplace/actions/go-installer
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# go-installer
A GitHub Action for installing and caching Go binaries.
## Usage
```yaml
name: CI
on:
pull_request:
jobs:
example:
name: Example
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5- name: Install latest tool
uses: mattdowdell/go-installer@main # TODO use tag once released
with:
package: github.com/example/some-tool
# version defaults to latest- name: Install version of tool
uses: mattdowdell/go-installer@main # TODO use tag once released
with:
package: github.com/example/some-other-tool
version: v1.0.0
```## Inputs
| Name | Type | Default | Description |
| --------- | ------ | -------- | ---------------------------------- |
| `package` | String | | The Go package to install. |
| `version` | String | `latest` | The Go package version to install. |## Outputs
| Name | Type | Description |
| --------- | ------ | ------------------------------------------------ |
| `cached` | String | Whether the binary was installed from the cache. |
| `name` | String | The name of the installed binary. |
| `version` | String | The installed version. |If the `version` input was latest, it will be the actual version that was
installed. Otherwise it will be identical to the `version` input.