From 61f5202fdcf80f3fba465e8d1d0a3d99b618d9d3 Mon Sep 17 00:00:00 2001 From: aboyko Date: Thu, 3 Aug 2023 20:57:19 -0400 Subject: [PATCH] GHA: Agg Update Site aws dry-run --- .../workflows/aggregate-distro-update-sites.yml | 16 ++++++++-------- .../aggregate-ls-extensions-update-site.yml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/aggregate-distro-update-sites.yml b/.github/workflows/aggregate-distro-update-sites.yml index 199fcc6f2..6cd6ebea9 100644 --- a/.github/workflows/aggregate-distro-update-sites.yml +++ b/.github/workflows/aggregate-distro-update-sites.yml @@ -44,14 +44,14 @@ jobs: cat ./compositeArtifacts.xml cat ./compositeContent.xml if [[ ${dir_name} == ${{ inputs.latest }} ]]; then - echo "aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read" - echo "aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read" - echo "aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read" - echo "Clear caches for path release/TOOLS/sts4/update/latest" + aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read + aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read + aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/latest --dryrun --acl public-read + ${{ github.workspace }}/.github/scripts/clear-s3-caches.sh release/TOOLS/sts4/update/latest fi - echo "aws s3 mv ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read" - echo "aws s3 mv ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read" - echo "aws s3 mv ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read" - echo "Clear caches for path release/TOOLS/sts4/update/${dir_name}" + aws s3 mv ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read + aws s3 mv ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read + aws s3 mv ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/${dir} --dryrun --acl public-read + ${{ github.workspace }}/.github/scripts/clear-s3-caches.sh release/TOOLS/sts4/update/${dir_name} fi done \ No newline at end of file diff --git a/.github/workflows/aggregate-ls-extensions-update-site.yml b/.github/workflows/aggregate-ls-extensions-update-site.yml index 9bd59ac01..e18635dd3 100644 --- a/.github/workflows/aggregate-ls-extensions-update-site.yml +++ b/.github/workflows/aggregate-ls-extensions-update-site.yml @@ -36,7 +36,7 @@ jobs: ${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url cat ./compositeArtifacts.xml cat ./compositeContent.xml - echo "aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations/ --dryrun --acl public-read" - echo "aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations/ --dryrun --acl public-read" - echo "aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/sts4-language-server-integrations/ --dryrun --acl public-read" - echo "Clear caches for path release/TOOLS/sts4/update/sts4-language-server-integrations" + aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations/ --dryrun --acl public-read + aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations/ --dryrun --acl public-read + aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4/update/sts4-language-server-integrations/ --dryrun --acl public-read + ${{ github.workspace }}/.github/scripts/clear-s3-caches.sh release/TOOLS/sts4/update/sts4-language-server-integrations