diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest.yml index 5e8b0fb..be17f37 100644 --- a/.github/workflows/autotest.yml +++ b/.github/workflows/autotest.yml @@ -89,7 +89,7 @@ jobs: goos: [linux] goarch: [amd64] # "" means default - goversion: ["", "1.19", "1.19.7", "https://go.dev/dl/go1.19.7.linux-amd64.tar.gz"] + goversion: ["", "1.21", "1.21.1", "https://go.dev/dl/go1.21.6.linux-amd64.tar.gz"] steps: # - name: Wait release docker build for release branches # if: contains(github.ref, 'release') diff --git a/setup-go.sh b/setup-go.sh index b0d0b3e..f7552b6 100755 --- a/setup-go.sh +++ b/setup-go.sh @@ -7,7 +7,7 @@ GO_LINUX_PACKAGE_URL="https://go.dev/dl/$(curl https://go.dev/VERSION?m=text | h if [[ "${INPUT_GOVERSION##*/}" == "go.mod" ]]; then INPUT_GOVERSION=$(grep -e '^go' -m 1 ${INPUT_GOVERSION} | sed -e 's/go //g') fi -if [[ ${INPUT_GOVERSION} =~ "^1\.[0-9]+" ]]; then +if [[ ${INPUT_GOVERSION} =~ ^1\.[0-9]+$ ]]; then LATEST_MINOR_GOVERSION=$(curl -s https://go.dev/dl/ | grep -oP "go${INPUT_GOVERSION}\.\d+" | head -n 1 | cut -c 3-) GO_LINUX_PACKAGE_URL="https://go.dev/dl/go${LATEST_MINOR_GOVERSION}.linux-${ARCH}.tar.gz" elif [[ ${INPUT_GOVERSION} == http* ]]; then