You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2022/10/28 20:27:24 UTC

[arrow-adbc] branch main updated: ci(c/driver_manager,c/driver/postgres): show error on failure (#157)

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

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new a13eaa3  ci(c/driver_manager,c/driver/postgres): show error on failure (#157)
a13eaa3 is described below

commit a13eaa3420b4b9c10e812fbc43a804d6f92737b5
Author: David Li <li...@gmail.com>
AuthorDate: Fri Oct 28 16:27:20 2022 -0400

    ci(c/driver_manager,c/driver/postgres): show error on failure (#157)
---
 .github/workflows/packaging-wheels.yml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/packaging-wheels.yml b/.github/workflows/packaging-wheels.yml
index 07a571f..dc89219 100644
--- a/.github/workflows/packaging-wheels.yml
+++ b/.github/workflows/packaging-wheels.yml
@@ -79,8 +79,19 @@ jobs:
         if: github.ref == 'refs/heads/main' && (github.event.schedule || github.event.inputs.upload_wheels)
         run: |
           path=$(ls python/adbc_driver_manager/repaired_wheels/*.whl)
-          curl --show-error --fail -F "package=@${path}" https://${GEMFURY_PUSH_TOKEN}@push.fury.io/arrow-adbc-nightlies/
+          response_code=$(curl --silent -o output.txt -w '%{http_code}' -F "package=@${path}" https://${GEMFURY_PUSH_TOKEN}@push.fury.io/arrow-adbc-nightlies/)
+          if [[ $response_code -ge 300 ]]; then
+            cat output.txt
+            exit 1
+          fi
+
+          sleep 1
+
           path=$(ls python/adbc_driver_postgres/repaired_wheels/*.whl)
-          curl --show-error --fail -F "package=@${path}" https://${GEMFURY_PUSH_TOKEN}@push.fury.io/arrow-adbc-nightlies/
+          response_code=$(curl --silent -o output.txt -w '%{http_code}' -F "package=@${path}" https://${GEMFURY_PUSH_TOKEN}@push.fury.io/arrow-adbc-nightlies/)
+          if [[ $response_code -ge 300 ]]; then
+            cat output.txt
+            exit 1
+          fi
         env:
           GEMFURY_PUSH_TOKEN: ${{ secrets.GEMFURY_PUSH_TOKEN }}