diff --git a/.github/actions/go-dist-info/action.yml b/.github/actions/go-dist-info/action.yml index 710d3a68..57c63531 100644 --- a/.github/actions/go-dist-info/action.yml +++ b/.github/actions/go-dist-info/action.yml @@ -52,7 +52,7 @@ runs: GO_VERSION=$(cat "${PARAM_GO_VERSION_FILE}") echo "Go version specified in ${PARAM_GO_VERSION_FILE} is ${GO_VERSION}" elif [ -f "${FALLBACK_GO_VERSION_FILE}" ]; then - GO_VERSION=$(cat "${FALLBACK_GO_VERSION_FILE}") + read -r GO_VERSION < "${FALLBACK_GO_VERSION_FILE}" echo "Go version specified in ${FALLBACK_GO_VERSION_FILE} is ${GO_VERSION}" else echo "Error: Go version was not specified as a parameter and neither ${PARAM_GO_VERSION_FILE} nor ${FALLBACK_GO_VERSION_FILE} exist"