From c1d74565a3c8675da6ef96b4fc031b11f7045957 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 27 May 2026 14:51:09 -0400 Subject: [PATCH] adjusting defaults for version input --- action.yaml | 1 - install.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index 2e58758..90de116 100644 --- a/action.yaml +++ b/action.yaml @@ -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: diff --git a/install.sh b/install.sh index 1a002c1..f6224cf 100755 --- a/install.sh +++ b/install.sh @@ -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)"