new/version-input #3

Merged
jake merged 11 commits from new/version-input into main 2026-05-27 18:55:06 +00:00
Showing only changes of commit d0bce850e0 - Show all commits

View File

@@ -4,17 +4,17 @@ An extremely simple github action to install golang and golang commands (using "
## Usage ## Usage
Use a tagged release to avoid unexpected changes that may come to the master branch Use a tagged release to avoid unexpected changes that may come to the main branch
```yaml ```yaml
name: "install go" name: "install go"
uses: https://code.jakeyoungdev.com/actions/install-go@master uses: https://code.jakeyoungdev.com/actions/install-go@main
with: with:
commands: | commands: |
code.jakeyoungdev.com/jake/mctl@v0.3.3 code.jakeyoungdev.com/jake/mctl@v0.3.3
``` ```
#### Go verions #### Go verions
The Go version installed is determined by the version specified in the go.mod file. If not mod file is present the 'version' input is used. Go files are pulled directly from the Go download [site](https://go.dev/dl/) and all go commands are installed using 'go install' after setup. If a different version of Go is already installed the 'purge' input must be set to 'yes' to remove it and avoid errors. The go version installed is either determined by the version input, or the version found in a go.mod file if the input is not set. Go files are pulled directly from the Go download [site](https://go.dev/dl/) and all go commands are installed using 'go install' after setup. If a different version of Go is already installed the 'purge' input must be set to 'yes' to remove it and avoid errors.
#### Inputs #### Inputs
Some inputs are available to customize the installation Some inputs are available to customize the installation
@@ -23,7 +23,7 @@ Some inputs are available to customize the installation
|arch|no|any arch for Go|amd64|system architecture for go |arch|no|any arch for Go|amd64|system architecture for go
|purge|no|yes/no|no|remove any go files found on system before install |purge|no|yes/no|no|remove any go files found on system before install
|commands|no|any public go repositories|.|links to any commands to be installed using 'go install' |commands|no|any public go repositories|.|links to any commands to be installed using 'go install'
|version|no|any go version|.|the go version to use if no mod file is present |version|no|any go version|version in go.mod file|the go version to install
## Issues ## Issues
This repo is a as brain-dead as I could make it and is intended to be as fast and low-level as possible. Please open an issue for any problems or suggestions. This repo is a as brain-dead as I could make it and is intended to be as fast and low-level as possible. Please open an issue for any problems or suggestions.