This commit is contained in:
+3
-5
@@ -3,12 +3,7 @@ set -xeuo pipefail
|
||||
|
||||
main() {
|
||||
GO_VERSION=$(curl -s 'https://go.dev/VERSION?m=text' | head -n1)
|
||||
|
||||
# 1.
|
||||
ACTION_REPO_DIR="${PWD}"
|
||||
go mod edit -go=$(echo GO_VERSION | sed 's/^go//')
|
||||
#mkdir "${ACTION_REPO_DIR}"
|
||||
#cp -a . "${ACTION_REPO_DIR}/"
|
||||
|
||||
# 2. Create temp directory
|
||||
TMPDIR="$(mktemp -d)"
|
||||
@@ -22,6 +17,9 @@ main() {
|
||||
tar xzf "${GO_VERSION}.linux-amd64.tar.gz"
|
||||
PATH="${PATH}:$PWD/go/bin"
|
||||
|
||||
cd "${ACTION_REPO_DIR}"
|
||||
go mod edit -go=$(echo GO_VERSION | sed 's/^go//')
|
||||
|
||||
# 3. Clone latest CoreDNS release
|
||||
cd "${TMPDIR}"
|
||||
COREDNS_REPO_URL="https://github.com/coredns/coredns.git"
|
||||
|
||||
Reference in New Issue
Block a user