mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 11:34:00 +00:00
929 B
929 B
ivuorinen/actions/go-version-detect
Go Version Detect
Description
Detects the Go version from the project's go.mod file or defaults to a specified version.
Inputs
| name | description | required | default |
|---|---|---|---|
default-version |
Default Go version to use if go.mod is not found. |
false |
1.22 |
Outputs
| name | description |
|---|---|
go-version |
Detected or default Go version. |
Runs
This action is a composite action.
Usage
- uses: ivuorinen/actions/go-version-detect@main
with:
default-version:
# Default Go version to use if go.mod is not found.
#
# Required: false
# Default: 1.22