Skip to content

Commit df22a8e

Browse files
committed
Use watch-gh-workflow script
1 parent ac39888 commit df22a8e

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

dev/release/07-flightsqlodbc-upload.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,14 @@ fi
137137

138138
if [ "${PHASE_BUILD_MSI}" -gt 0 ]; then
139139
echo "[4/8 Triggering odbc_release_step in cpp_extra.yml workflow..."
140-
run_url=$(gh workflow run cpp_extra.yml \
140+
gh workflow run cpp_extra.yml \
141141
--repo "${GITHUB_REPOSITORY}" \
142142
--ref "${tag}" \
143-
--field odbc_release_step=true 2>&1 | grep -oE 'https://[^ ]+' || true)
144-
run_id=${run_url##*/} # Extract the run ID from the URL (the part after the last slash)
145-
if [ -z "${run_id}" ]; then
146-
echo "ERROR: failed to get run ID from workflow trigger" >&2
147-
exit 1
148-
fi
149-
echo "Triggered run: ${run_url}"
143+
--field odbc_release_step=true
150144

151145
echo "[5/8 Waiting for workflow to complete. This can take a very long time..."
152-
gh run watch "${run_id}" --repo "${GITHUB_REPOSITORY}" --exit-status --interval 60
153-
echo "Run id ${run_id} completed."
146+
REPOSITORY="${GITHUB_REPOSITORY}" \
147+
"${SOURCE_DIR}/utils-watch-gh-workflow.sh" "${tag}" cpp_extra.yml
154148
fi
155149

156150
if [ "${PHASE_SIGN_MSI}" -gt 0 ]; then

0 commit comments

Comments
 (0)