mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 03:21:43 +02:00
.github: update to Go 1.17
Update the default version of Go to 1.17 in the Github Actions as well.
This commit is contained in:
parent
e7956fb4c7
commit
5525e14081
@ -16,8 +16,8 @@ fi
|
||||
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
|
||||
|
||||
# Parse the Manifest file for already present source files and keep the latest version in the current series
|
||||
# DIST go1.16.src.tar.gz ... => 1.16
|
||||
# DIST go1.16.3.src.tar.gz ... => 1.16.3
|
||||
# DIST go1.17.src.tar.gz ... => 1.17
|
||||
# DIST go1.17.1.src.tar.gz ... => 1.17.1
|
||||
VERSION_OLD=$(sed -n "s/^DIST go\(${VERSION_SHORT}\.*[0-9]*\)\.src.*/\1/p" dev-lang/go/Manifest | sort -ruV | head -n1)
|
||||
if [[ "${VERSION_NEW}" = "${VERSION_OLD}" ]]; then
|
||||
echo "already the latest Go, nothing to do"
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
||||
- name: Fetch latest Go release
|
||||
id: fetch-latest-release
|
||||
env:
|
||||
GO_VERSION: "1.16"
|
||||
GO_VERSION: "1.17"
|
||||
run: |
|
||||
git clone --depth=1 --no-checkout https://github.com/golang/go
|
||||
versionMain=$(git -C go ls-remote --tags origin | cut -f2 | sed -n "/refs\/tags\/go${GO_VERSION}\.[0-9]*$/s/^refs\/tags\/go//p" | egrep -v -e '(beta|rc)' | sort -ruV | head -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user