Skip to content

Commit

Permalink
fix(ci): correct release check (#18666)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyliu0 authored Sep 24, 2024
1 parent 5f800b9 commit 75cc17b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75cc17b

Please sign in to comment.