@@ -394,21 +394,33 @@ jobs:
394
394
SLACK_WEBHOOK_URL : ${{ secrets.OT_APP_ROBOTSTACK_SLACK_NOTIFICATION_WEBHOOK_URL }}
395
395
_ACCESS_URL : https://${{env._APP_DEPLOY_BUCKET_ROBOTSTACK}}/${{env._APP_DEPLOY_FOLDER_ROBOTSTACK}}
396
396
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
397
402
- name : ' pull repo for scripts'
398
403
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)"
402
414
- name : ' update internal-releases releases.json'
403
415
if : needs.determine-build-type.outputs.type == 'release' && contains(fromJSON(needs.determine-build-type.outputs.variants), 'internal-release')
404
416
run : |
405
417
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/
407
419
aws --profile=deploy s3 cp ./to_upload_internal-release/releases.json s3://${{ env._APP_DEPLOY_BUCKET_OT3 }}/${{ env._APP_DEPLOY_FOLDER_OT3 }}/releases.json
408
420
409
421
- name : ' update release releases.json'
410
422
if : needs.determine-build-type.outputs.type == 'release' && contains(fromJSON(needs.determine-build-type.outputs.variants), 'release')
411
423
run : |
412
424
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/
414
426
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