raulcd commented on code in PR #47600:
URL: https://github.com/apache/arrow/pull/47600#discussion_r2372329238


##########
dev/release/utils-watch-gh-workflow.sh:
##########
@@ -30,17 +30,30 @@ TAG=$1
 WORKFLOW=$2
 : "${REPOSITORY:=${GITHUB_REPOSITORY:-apache/arrow}}"
 
+get_run_id() {
+  gh run list \
+    --branch "${TAG}" \
+    --jq '.[].databaseId' \
+    --json databaseId \
+    --limit 1 \
+    --repo "${REPOSITORY}" \
+    --workflow "${WORKFLOW}"
+}
+
+download_artifacts() {
+  RUN_ID=$(get_run_id)
+  echo "Downloading artitfacts for workflow with ID: ${RUN_ID}"
+  gh run download \
+    ${RUN_ID} \
+    --repo "${REPOSITORY}" \
+    --dir "$1"
+}

Review Comment:
   We could rename the file to `utils-gh-workflow.sh` but if we use release for 
the artifacts this won't be necessary.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to