From 08123e3f5677e203e7980343a97f9e541dbfb45b Mon Sep 17 00:00:00 2001 From: Michael Seele Date: Mon, 1 Jun 2026 12:35:17 +0000 Subject: [PATCH] fix: update cache control argument handling for S3 sync --- publish-static-contents/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/publish-static-contents/action.yml b/publish-static-contents/action.yml index 9e42cac..7e63359 100644 --- a/publish-static-contents/action.yml +++ b/publish-static-contents/action.yml @@ -97,12 +97,12 @@ runs: fi # Bulk sync remaining files; versioned builds get immutable cache headers - CACHE_CONTROL_ARG="" + CACHE_CONTROL_ARG=() if [[ "${INPUT_VERSIONING}" == "true" ]]; then - CACHE_CONTROL_ARG="--cache-control 'public, max-age=31536000, immutable'" + CACHE_CONTROL_ARG=("--cache-control" "public, max-age=31536000, immutable") fi - aws s3 sync "${INPUT_DIST_DIR}" "s3://${INPUT_S3_BUCKET_NAME}" $CACHE_CONTROL_ARG "${EXCLUDE_ARGS[@]}" + aws s3 sync "${INPUT_DIST_DIR}" "s3://${INPUT_S3_BUCKET_NAME}" "${CACHE_CONTROL_ARG[@]}" "${EXCLUDE_ARGS[@]}" - name: Clean up old versioned static builds if: ${{ inputs.versioning == 'true' }}