Skip to content

Commit 2a9bf09

Browse files
committed
[fix] aws invalidation reference
1 parent 9e89e66 commit 2a9bf09

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • .github/actions/aws-cloudfront-invalidation

.github/actions/aws-cloudfront-invalidation/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ runs:
4444
4545
aws cloudfront create-invalidation \
4646
--distribution-id ${{ inputs.distribution_id }} \
47-
--paths ${{ inputs.paths }} \
48-
--caller-reference "${CALLER_REF}" \
47+
--invalidation-batch "{
48+
\"Paths\": {
49+
\"Quantity\": 1,
50+
\"Items\": [\"${{ inputs.paths }}\"]
51+
},
52+
\"CallerReference\": \"${CALLER_REF}\"
53+
}" \
4954
--no-cli-pager
5055
5156
echo "✅ CloudFront invalidation created successfully!"

0 commit comments

Comments
 (0)