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))