Skip to content

Commit 6659afe

Browse files
authored
fix(ci): backup and reinstate to_upload_* folders (#18987)
1 parent b584b2e commit 6659afe

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/app-test-build-deploy.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,21 +394,33 @@ jobs:
394394
SLACK_WEBHOOK_URL: ${{ secrets.OT_APP_ROBOTSTACK_SLACK_NOTIFICATION_WEBHOOK_URL }}
395395
_ACCESS_URL: https://${{env._APP_DEPLOY_BUCKET_ROBOTSTACK}}/${{env._APP_DEPLOY_FOLDER_ROBOTSTACK}}
396396

397+
- name: 'backup upload folders before checkout'
398+
run: |
399+
# Move upload folders to temp location to preserve them during checkout
400+
mkdir -p ${{ runner.temp }}/upload_backup
401+
mv to_upload_* ${{ runner.temp }}/upload_backup/ 2>/dev/null || true
397402
- name: 'pull repo for scripts'
398403
uses: 'actions/checkout@v4'
399-
with:
400-
path: ./monorepo
401-
- uses: ./monorepo/.github/actions/js/setup
404+
- name: 'restore upload folders after checkout'
405+
run: |
406+
# Restore upload folders from temp location
407+
mv ${{ runner.temp }}/upload_backup/to_upload_* ./ 2>/dev/null || true
408+
- uses: ./.github/actions/js/setup
409+
- name: 'print upload folders contents'
410+
run: |
411+
echo "Test Outputs"
412+
echo "Contents of to_upload_internal-release: $(ls -l ./to_upload_internal-release)"
413+
echo "Contents of to_upload_release: $(ls -l ./to_upload_release)"
402414
- name: 'update internal-releases releases.json'
403415
if: needs.determine-build-type.outputs.type == 'release' && contains(fromJSON(needs.determine-build-type.outputs.variants), 'internal-release')
404416
run: |
405417
aws --profile=deploy s3 cp s3://${{ env._APP_DEPLOY_BUCKET_OT3 }}/${{ env._APP_DEPLOY_FOLDER_OT3 }}/releases.json ./to_upload_internal-release/releases.json
406-
node ./monorepo/scripts/update-releases-json ./to_upload_internal-release/releases.json ot3 ./to_upload_internal-release https://ot3-development.builds.opentrons.com/app/
418+
node ./scripts/update-releases-json ./to_upload_internal-release/releases.json ot3 ./to_upload_internal-release https://ot3-development.builds.opentrons.com/app/
407419
aws --profile=deploy s3 cp ./to_upload_internal-release/releases.json s3://${{ env._APP_DEPLOY_BUCKET_OT3 }}/${{ env._APP_DEPLOY_FOLDER_OT3 }}/releases.json
408420
409421
- name: 'update release releases.json'
410422
if: needs.determine-build-type.outputs.type == 'release' && contains(fromJSON(needs.determine-build-type.outputs.variants), 'release')
411423
run: |
412424
aws --profile=deploy s3 cp s3://${{ env._APP_DEPLOY_BUCKET_ROBOTSTACK }}/${{ env._APP_DEPLOY_FOLDER_ROBOTSTACK }}/releases.json ./to_upload_release/releases.json
413-
node ./monorepo/scripts/update-releases-json ./to_upload_release/releases.json robot-stack ./to_upload_release https://builds.opentrons.com/app/
425+
node ./scripts/update-releases-json ./to_upload_release/releases.json robot-stack ./to_upload_release https://builds.opentrons.com/app/
414426
aws --profile=deploy s3 cp ./to_upload_release/releases.json s3://${{ env._APP_DEPLOY_BUCKET_ROBOTSTACK }}/${{ env._APP_DEPLOY_FOLDER_ROBOTSTACK }}/releases.json

0 commit comments

Comments
 (0)