kou commented on PR #50364:
URL: https://github.com/apache/arrow/pull/50364#issuecomment-4879666532
How about filtering by `--event=workflow_dispatch` instead of parsing `gh
workflow run` output?
```diff
diff --git a/dev/release/07-flightsqlodbc-upload.sh
b/dev/release/07-flightsqlodbc-upload.sh
index c823bc84ae..49f901a64f 100755
--- a/dev/release/07-flightsqlodbc-upload.sh
+++ b/dev/release/07-flightsqlodbc-upload.sh
@@ -143,7 +143,8 @@ if [ "${PHASE_BUILD_MSI}" -gt 0 ]; then
--field odbc_release_step=true
echo "[5/8] Waiting for workflow to complete. This can take a very long
time..."
- REPOSITORY="${GITHUB_REPOSITORY}" \
+ EVENT="workflow_dispatch" \
+ REPOSITORY="${GITHUB_REPOSITORY}" \
"${SOURCE_DIR}/utils-watch-gh-workflow.sh" "${tag}" package_odbc.yml
fi
diff --git a/dev/release/utils-watch-gh-workflow.sh
b/dev/release/utils-watch-gh-workflow.sh
index 163f30251f..83c66d91e9 100755
--- a/dev/release/utils-watch-gh-workflow.sh
+++ b/dev/release/utils-watch-gh-workflow.sh
@@ -29,6 +29,7 @@ fi
TAG=$1
WORKFLOW=$2
: "${REPOSITORY:=${GITHUB_REPOSITORY:-apache/arrow}}"
+: "${EVENT:=push}"
echo "Looking for GitHub Actions workflow on ${REPOSITORY}:${TAG}"
RUN_ID=""
@@ -36,6 +37,7 @@ while true; do
echo "Waiting for run to start..."
RUN_ID=$(gh run list \
--branch "${TAG}" \
+ --event "${EVENT}" \
--jq '.[].databaseId' \
--json databaseId \
--limit 1 \
```
--
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]