From f6afad262804f7372ddb658cd79a06f94f5624ab Mon Sep 17 00:00:00 2001 From: Jack Kleeman Date: Fri, 7 Jun 2024 13:18:41 +0200 Subject: [PATCH] Fix version parsing logic --- release/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/release.sh b/release/release.sh index 9c832b7..52b43e2 100755 --- a/release/release.sh +++ b/release/release.sh @@ -2,7 +2,7 @@ set -euo pipefail SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -version=$(curl --silent --location --fail https://api.github.com/repos/restatedev/restate/releases/latest | grep '^ "name"' | awk '{print $2}' | tr -d '"v,') +version=$(curl --silent --location --fail https://api.github.com/repos/restatedev/restate/releases/latest | grep '^ "tag_name"' | awk '{print $2}' | tr -d '"v,') darwin_x86=$(curl --silent --location --fail "https://github.com/restatedev/restate/releases/download/v${version}/restate.x86_64-apple-darwin.tar.gz" | sha256sum | awk '{print $1}') darwin_arm64=$(curl --silent --location --fail "https://github.com/restatedev/restate/releases/download/v${version}/restate.aarch64-apple-darwin.tar.gz" | sha256sum | awk '{print $1}') linux_x86=$(curl --silent --location --fail "https://github.com/restatedev/restate/releases/download/v${version}/restate.x86_64-unknown-linux-musl.tar.gz" | sha256sum | awk '{print $1}')