diff --git a/.github/workflows/linux_job.yml b/.github/workflows/linux_job.yml index 8f9057bc7a..8de9a235f2 100644 --- a/.github/workflows/linux_job.yml +++ b/.github/workflows/linux_job.yml @@ -300,9 +300,11 @@ jobs: if [[ -n "${UPLOAD_ARTIFACT_NAME}" ]]; then # If the default execution path is followed then we should get a wheel in the dist/ folder # attempt to just grab whatever is in there and scoop it all up - if find "dist/" -name "*.whl" >/dev/null 2>/dev/null; then - mv -v dist/*.whl "${RUNNER_ARTIFACT_DIR}/" - fi + for wheel in dist/*.whl; do + if [[ -f "${wheel}" ]]; then + mv -v "${wheel}" "${RUNNER_ARTIFACT_DIR}/" + fi + done if [[ -d "artifacts-to-be-uploaded" ]]; then mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/" fi diff --git a/.github/workflows/linux_job_v2.yml b/.github/workflows/linux_job_v2.yml index 229335e38c..db381ff8e8 100644 --- a/.github/workflows/linux_job_v2.yml +++ b/.github/workflows/linux_job_v2.yml @@ -330,9 +330,11 @@ jobs: if [[ -n "${UPLOAD_ARTIFACT_NAME}" ]]; then # If the default execution path is followed then we should get a wheel in the dist/ folder # attempt to just grab whatever is in there and scoop it all up - if find "dist/" -name "*.whl" >/dev/null 2>/dev/null; then - mv -v dist/*.whl "${RUNNER_ARTIFACT_DIR}/" - fi + for wheel in dist/*.whl; do + if [[ -f "${wheel}" ]]; then + mv -v "${wheel}" "${RUNNER_ARTIFACT_DIR}/" + fi + done if [[ -d "artifacts-to-be-uploaded" ]]; then mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/" fi diff --git a/.github/workflows/linux_job_v3.yml b/.github/workflows/linux_job_v3.yml index 0de872b899..447140f64c 100644 --- a/.github/workflows/linux_job_v3.yml +++ b/.github/workflows/linux_job_v3.yml @@ -248,9 +248,11 @@ jobs: if [[ -n "${UPLOAD_ARTIFACT_NAME}" ]]; then # If the default execution path is followed then we should get a wheel in the dist/ folder # attempt to just grab whatever is in there and scoop it all up - if find "dist/" -name "*.whl" >/dev/null 2>/dev/null; then - mv -v dist/*.whl "${RUNNER_ARTIFACT_DIR}/" - fi + for wheel in dist/*.whl; do + if [[ -f "${wheel}" ]]; then + mv -v "${wheel}" "${RUNNER_ARTIFACT_DIR}/" + fi + done if [[ -d "artifacts-to-be-uploaded" ]]; then mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/" fi diff --git a/.github/workflows/macos_job.yml b/.github/workflows/macos_job.yml index c6437e1182..b2df1dbc97 100644 --- a/.github/workflows/macos_job.yml +++ b/.github/workflows/macos_job.yml @@ -195,9 +195,11 @@ jobs: run: | # If the default execution path is followed then we should get a wheel in the dist/ folder # attempt to just grab whatever is in there and scoop it all up - if find "dist/" -name "*.whl" >/dev/null 2>/dev/null; then - mv -v dist/*.whl "${RUNNER_ARTIFACT_DIR}/" - fi + for wheel in dist/*.whl; do + if [[ -f "${wheel}" ]]; then + mv -v "${wheel}" "${RUNNER_ARTIFACT_DIR}/" + fi + done if [[ -d "artifacts-to-be-uploaded" ]]; then mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/" fi diff --git a/.github/workflows/windows_job.yml b/.github/workflows/windows_job.yml index 86ea6b22fa..6c6d1c247f 100644 --- a/.github/workflows/windows_job.yml +++ b/.github/workflows/windows_job.yml @@ -186,9 +186,11 @@ jobs: run: | # If the default execution path is followed then we should get a wheel in the dist/ folder # attempt to just grab whatever is in there and scoop it all up - if find "dist/" -name "*.whl" >/dev/null 2>/dev/null; then - mv -v dist/*.whl "${RUNNER_ARTIFACT_DIR}/" - fi + for wheel in dist/*.whl; do + if [[ -f "${wheel}" ]]; then + mv -v "${wheel}" "${RUNNER_ARTIFACT_DIR}/" + fi + done if [[ -d "artifacts-to-be-uploaded" ]]; then mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/" fi