update url

This commit is contained in:
aptalca
2022-02-17 09:52:55 -05:00
parent 703c5ff3fe
commit 3c3d4183fa
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
- name: Build image
run: |
# Set version
GO_WEBSITE=$(curl -sX GET https://golang.org/dl/)
GO_WEBSITE=$(curl -sLX GET https://go.dev/dl/)
GO_VERSION=${{ github.event.inputs.GO_VERSION }}
GO_VERSION=${GO_VERSION:-$(echo "$GO_WEBSITE" | grep -o '<span.*>.*linux-amd64.*</span>' | grep -oP '(?<=go).*(?=.linux)')}
if [ $(echo "$GO_VERSION" | tr -d -c '.' | awk '{ print length; }') = "1" ]; then GO_TAG="${GO_VERSION}.0"; else GO_TAG="${GO_VERSION}"; fi