From 41d9fe9986caefa4a9f55f016f330b1728969cd1 Mon Sep 17 00:00:00 2001 From: Nick Miyake Date: Mon, 9 Dec 2024 13:30:16 -0800 Subject: [PATCH] Test fix for publish operation in GitHub actions (#487) --- .github/actions/go-dist-info/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"