From f7952b77eb8a822e62bd9017455dc7e2edb71502 Mon Sep 17 00:00:00 2001 From: qilip Date: Thu, 9 Nov 2023 23:23:53 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix:=20S3=20object=20retrieval?= =?UTF-8?q?=20in=20deploy.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 65d80ec..5a20a3a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -79,7 +79,7 @@ jobs: PREFIX="_nuxt/" # _nuxt/ 프리픽스로 시작하는 모든 S3 객체 가져오기 - aws s3api list-objects-v2 --bucket ${{ env.AWS_S3_BUCKET }} --prefix $PREFIX --output json | jq -r '.Contents[] | .Key + " " + (.LastModified | strflocaltime("%Y-%m-%d"))' | sort -k2,2r > objects_by_date.txt + aws s3api list-objects-v2 --bucket ${{ env.AWS_S3_BUCKET }} --prefix $PREFIX --output json | jq -r '.Contents[] | "\(.Key) \(.LastModified)"' | awk '{sub(/\..*/,"",$NF); print $0}' | sort -k2r > objects_by_date.txt # 각 날짜별로 파일 그룹화하고, 날짜만 추출하여 배열 생성 DATES=($(cat objects_by_date.txt | cut -d ' ' -f2 | uniq))