From 75cc17b7178f5a5ffadf5b75fec18c05c99de2f7 Mon Sep 17 00:00:00 2001 From: Chengyou Liu <35356271+cyliu0@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:38:41 +0800 Subject: [PATCH] fix(ci): correct release check (#18666) --- ci/scripts/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/scripts/release.sh b/ci/scripts/release.sh index c2f88521a5fc..6ffafbb4a30d 100755 --- a/ci/scripts/release.sh +++ b/ci/scripts/release.sh @@ -108,9 +108,9 @@ if [[ -n "${BUILDKITE_TAG}" ]]; then echo "--- Release create" set +e - response=$(gh api repos/risingwavelabs/risingwave/releases/tags/"${BUILDKITE_TAG}" 2>&1) + response=$(gh release view -R risingwavelabs/risingwave "${BUILDKITE_TAG}" 2>&1) set -euo pipefail - if [[ $response == *"Not Found"* ]]; then + if [[ $response == *"not found"* ]]; then echo "Tag ${BUILDKITE_TAG} does not exist. Creating release..." gh release create "${BUILDKITE_TAG}" --notes "release ${BUILDKITE_TAG}" -d -p else