This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-vector-index.git


The following commit(s) were added to refs/heads/main by this push:
     new 1435943  fix: support macOS release staging script
1435943 is described below

commit 1435943a9d45b887d5de7a03330f9dd78acda6e1
Author: JingsongLi <[email protected]>
AuthorDate: Sun Jul 26 21:00:30 2026 +0800

    fix: support macOS release staging script
    
    Signed-off-by: JingsongLi <[email protected]>
---
 tools/deploy_java_staging.sh | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/tools/deploy_java_staging.sh b/tools/deploy_java_staging.sh
index 0795a94..8c8228e 100755
--- a/tools/deploy_java_staging.sh
+++ b/tools/deploy_java_staging.sh
@@ -247,7 +247,6 @@ check_java_package_inputs_clean
 
 validate_github_run() {
   local run_output
-  local run_info
   if ! run_output=$(
     gh run view "$RUN_ID" \
       --repo "$REPO" \
@@ -257,14 +256,19 @@ validate_github_run() {
     echo "Failed to read GitHub Actions run: $RUN_ID" >&2
     exit 1
   fi
-  mapfile -t run_info <<<"$run_output"
-
-  local run_status=${run_info[0]:-}
-  local run_conclusion=${run_info[1]:-}
-  local run_head_sha=${run_info[2]:-}
-  local run_head_branch=${run_info[3]:-}
-  local run_workflow_name=${run_info[4]:-}
-  local run_event=${run_info[5]:-}
+
+  local run_status
+  local run_conclusion
+  local run_head_sha
+  local run_head_branch
+  local run_workflow_name
+  local run_event
+  run_status=$(printf '%s\n' "$run_output" | sed -n '1p')
+  run_conclusion=$(printf '%s\n' "$run_output" | sed -n '2p')
+  run_head_sha=$(printf '%s\n' "$run_output" | sed -n '3p')
+  run_head_branch=$(printf '%s\n' "$run_output" | sed -n '4p')
+  run_workflow_name=$(printf '%s\n' "$run_output" | sed -n '5p')
+  run_event=$(printf '%s\n' "$run_output" | sed -n '6p')
 
   if [[ "$run_status" != "completed" || "$run_conclusion" != "success" ]]; then
     echo "GitHub Actions run $RUN_ID is not a successful completed run." >&2

Reply via email to