diff --git a/dev/tasks/macros.jinja b/dev/tasks/macros.jinja index dded9492f0c..1c118b4c4f7 100644 --- a/dev/tasks/macros.jinja +++ b/dev/tasks/macros.jinja @@ -186,6 +186,12 @@ env: - name: Upload wheel to Anaconda scientific-python shell: bash run: | + # check if completion actually expands to wheel files + # to prevent empty dirs from failing silently + if ! compgen -G "{{ pattern }}" > /dev/null; then + echo "No wheel files found!" + exit 1 + fi python3 -m pip install git+https://github.com/Anaconda-Platform/anaconda-client.git@1.12.3 anaconda -t ${CROSSBOW_SCIENTIFIC_PYTHON_UPLOAD_TOKEN} upload --force -u scientific-python-nightly-wheels --label main {{ pattern }} env: diff --git a/dev/tasks/python-wheels/github.windows.yml b/dev/tasks/python-wheels/github.windows.yml index 36b25e9819f..2ac942d5bdb 100644 --- a/dev/tasks/python-wheels/github.windows.yml +++ b/dev/tasks/python-wheels/github.windows.yml @@ -91,7 +91,7 @@ jobs: {{ macros.github_upload_releases("arrow/python/repaired_wheels/*.whl")|indent }} {{ macros.github_upload_gemfury("arrow/python/repaired_wheels/*.whl")|indent }} - {{ macros.github_upload_wheel_scientific_python("arrow/repaired_wheels/repaired_wheels/*.whl")|indent }} + {{ macros.github_upload_wheel_scientific_python("arrow/python/repaired_wheels/*.whl")|indent }} {% if arrow.is_default_branch() %} - name: Push Docker image