GHA: Use aws cli to dryrun upload p2 repo

This commit is contained in:
aboyko
2023-11-08 21:33:33 -05:00
parent 982d8dc3e6
commit 0ffdf55954

View File

@@ -110,8 +110,8 @@ jobs:
run: |
dist_path=`cat org.springframework.tooling.ls.integration.repository/target/s3-p2-repo-dist-path.txt`
echo "Dist path: ${dist_path}"
aws s3 rm s3://tools-spring-io/${dist_path}/ --recursive
aws s3 mv ./org.springframework.tooling.ls.integration.repository/target/repository/ s3://dist.springsource.com/${dist_path}/ --recursive
aws s3 rm s3://tools-spring-io/${dist_path}/ --recursive --dryrun
aws s3 mv ./org.springframework.tooling.ls.integration.repository/target/repository/ s3://dist.springsource.com/${dist_path}/ --recursive --dryrun
- name: Clear S3 Caches
if: ${{ inputs.build_type != 'snapshot' }}
env: