Skip to content

Commit 1612910

Browse files
committed
chore: fix object listing output
1 parent 1f1bdb5 commit 1612910

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/update-cache-policy.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ jobs:
4949
5050
- name: Update cache control policy
5151
run: |
52-
aws s3api list-objects --bucket ${{ secrets.AWS_PROD_S3_BUCKET_NAME }} --prefix adobe-analytics-js --query "Contents[].Key" --output text | while read key; do
52+
aws s3api list-objects --bucket ${{ secrets.AWS_PROD_S3_BUCKET_NAME }} --prefix adobe-analytics-js --query "Contents[].Key" --output text | tr '\t' '\n' | while read key; do
5353
aws s3api copy-object \
5454
--bucket ${{ secrets.AWS_PROD_S3_BUCKET_NAME }} \
55-
--copy-source ${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/$key \
56-
--key $key \
55+
--copy-source "${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/$key" \
56+
--key "$key" \
5757
--metadata-directive REPLACE \
5858
--cache-control "${{ env.cache_control_policy }}"
5959
done
6060
61+

0 commit comments

Comments
 (0)