diff --git a/dev/tasks/python-wheels/github.windows.yml b/dev/tasks/python-wheels/github.windows.yml index ad7bbb62a7c4b..36b25e9819f27 100644 --- a/dev/tasks/python-wheels/github.windows.yml +++ b/dev/tasks/python-wheels/github.windows.yml @@ -47,11 +47,14 @@ jobs: - name: Prepare shell: bash run: | - if [ "${PYTHON_ABI_TAG}" = "cp313t" ]; then - test_image_prefix=python-free-threaded - else - test_image_prefix=python - fi + case "${PYTHON_ABI_TAG}" in + *t) + test_image_prefix=python-free-threaded + ;; + *) + test_image_prefix=python + ;; + esac echo "TEST_IMAGE_PREFIX=${test_image_prefix}" >> ${GITHUB_ENV} - name: Build wheel