From da3b20a984f5a550872f2b43b8038a80f27b1d4e Mon Sep 17 00:00:00 2001 From: aboyko Date: Wed, 15 Nov 2023 10:31:11 -0500 Subject: [PATCH] GHA: Test Akamai purge cache --- .github/workflows/akamai-purge-cache.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/akamai-purge-cache.yml b/.github/workflows/akamai-purge-cache.yml index b1a6dde94..f51d2d80c 100644 --- a/.github/workflows/akamai-purge-cache.yml +++ b/.github/workflows/akamai-purge-cache.yml @@ -35,7 +35,10 @@ jobs: role-skip-session-tagging: true - name: Akamai Cache Purge via CLI run: | - aws s3 ls s3://tools-spring-io/${{ inputs.path }} --recursive | awk '{$1=$2=$3=""; print $0}' | sed -e 's/^[ \t]*/https:\/\/cdn.spring.io\/spring-tools\//' | akamai purge invalidate + urls=`aws s3 ls s3://tools-spring-io/${{ inputs.path }} --recursive | awk '{$1=$2=$3=""; print $0}' | sed -e 's/^[ \t]*/https:\/\/cdn.spring.io\/spring-tools\//' | paste -sd' ' -` + echo $urls + akamai purge invalidate $urls +# aws s3 ls s3://tools-spring-io/${{ inputs.path }} --recursive | awk '{$1=$2=$3=""; print $0}' | sed -e 's/^[ \t]*/https:\/\/cdn.spring.io\/spring-tools\//' | akamai purge invalidate # akamai purge invalidate https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html - name: Remove .edgerc file if: ${{ always() }}