new/version-input #3

Merged
jake merged 11 commits from new/version-input into main 2026-05-27 18:55:06 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit c1d74565a3 - Show all commits

View File

@@ -16,7 +16,6 @@ inputs:
version:
description: "Optional, the Go version to install if no go.mod file is present"
required: false
default: "."
runs:
using: composite
steps:

View File

@@ -39,7 +39,7 @@ function fixVersion {
echo "Parsing go version"
#check install version field first
if [[ -z $GO_INSTALL_VERSION ]]; then
if [[ -z "$GO_INSTALL_VERSION" ]]; then
echo "No version input found, checking go.mod files"
# -P uses perl syntax
DL_VERSION_RAW="$(grep "^go [0-9]+.[0-9]+" go.mod -P)"