mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
.github: Bump Golang version to 1.16 for Github Actions
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
This commit is contained in:
parent
44f43b4f7f
commit
8ab974edb4
@ -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.15.src.tar.gz ... => 1.15
|
||||
# DIST go1.15.3.src.tar.gz ... => 1.15.3
|
||||
# DIST go1.16.src.tar.gz ... => 1.16
|
||||
# DIST go1.16.3.src.tar.gz ... => 1.16.3
|
||||
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.15"
|
||||
GO_VERSION: "1.16"
|
||||
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…
Reference in New Issue
Block a user