diff --git a/.gitea/workflows/deploy_call.yaml b/.gitea/workflows/deploy_call.yaml index 347438b..8be4bf0 100644 --- a/.gitea/workflows/deploy_call.yaml +++ b/.gitea/workflows/deploy_call.yaml @@ -88,7 +88,8 @@ jobs: "$API/repos/$REPO/releases") # 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 echo "Gagal membuat release. Response: $RELEASE_RESP"