fix: test build
Beta Release / deploy (push) Successful in 49s

This commit is contained in:
datadunia
2026-05-09 01:27:45 +07:00
parent c5d3651a96
commit 89443f9481
+2 -1
View File
@@ -88,7 +88,8 @@ jobs:
"$API/repos/$REPO/releases") "$API/repos/$REPO/releases")
# Ambil ID dengan lebih teliti # Ambil ID dengan lebih teliti
RELEASE_ID=$(echo "$RELEASE_RESP" | grep -o '"id":[0-9]*' | head -n 1 | cut -d':' -f2) # Tambahkan || true agar grep tidak membuat script crash (karena set -e) jika id tidak ditemukan
RELEASE_ID=$(echo "$RELEASE_RESP" | grep -o '"id":[0-9]*' | head -n 1 | cut -d':' -f2 || true)
if [ -z "$RELEASE_ID" ] || [ "$RELEASE_ID" = "null" ]; then if [ -z "$RELEASE_ID" ] || [ "$RELEASE_ID" = "null" ]; then
echo "Gagal membuat release. Response: $RELEASE_RESP" echo "Gagal membuat release. Response: $RELEASE_RESP"