From f105a52aa68f3fbb856a81fe0ac749d2e4ec823d Mon Sep 17 00:00:00 2001 From: aboyko Date: Thu, 3 Aug 2023 21:50:35 -0400 Subject: [PATCH] GHA: Agg Update Site cp with overwrite flag for the latest --- .github/workflows/aggregate-distro-update-sites.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aggregate-distro-update-sites.yml b/.github/workflows/aggregate-distro-update-sites.yml index a0cd4e9d7..e1b2bd57a 100644 --- a/.github/workflows/aggregate-distro-update-sites.yml +++ b/.github/workflows/aggregate-distro-update-sites.yml @@ -44,9 +44,9 @@ jobs: cat ./compositeArtifacts.xml cat ./compositeContent.xml if [[ ${dir_name} == ${{ inputs.latest }} ]]; then - aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --acl public-read - aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --acl public-read - aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/latest --acl public-read + aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --acl public-read --overwrite + aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --acl public-read --overwrite + aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/latest --acl public-read --overwrite ${{ github.workspace }}/.github/scripts/clear-s3-caches.sh release/TOOLS/sts4/update/latest fi aws s3 mv ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --acl public-read