From ab684b67e971367eecb7c6167631e2804449b799 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Mon, 14 Aug 2023 10:39:16 -0400 Subject: [PATCH] properly handle missing ones --- .github/workflows/app-test-build-deploy.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/app-test-build-deploy.yaml b/.github/workflows/app-test-build-deploy.yaml index 9afb574c74c..ae4af375ff0 100644 --- a/.github/workflows/app-test-build-deploy.yaml +++ b/.github/workflows/app-test-build-deploy.yaml @@ -325,9 +325,11 @@ jobs: - name: 'separate release and internal-release artifacts' run: | for variant in release internal-release ; do - echo "Moving ${variant} builds ./artifacts/opentrons-${variant}-*/* to to_upload_${variant}" + variant_pattern="./artifacts/opentrons-${variant}-*" + ls ${variant_pattern}/ 2>/dev/null 1>/dev/null || break + echo "Moving ${variant} builds ${variant_pattern}/* to to_upload_${variant}" mkdir to_upload_${variant} - cp ./artifacts/opentrons-${variant}-*/* ./to_upload_${variant} + cp ./artifacts/${variant_pattern}/* ./to_upload_${variant}/ echo "Moved $(ls ./to_upload_${variant})" done - name: 'configure s3 deploy creds'