We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e89e66 commit 2a9bf09Copy full SHA for 2a9bf09
1 file changed
.github/actions/aws-cloudfront-invalidation/action.yml
@@ -44,8 +44,13 @@ runs:
44
45
aws cloudfront create-invalidation \
46
--distribution-id ${{ inputs.distribution_id }} \
47
- --paths ${{ inputs.paths }} \
48
- --caller-reference "${CALLER_REF}" \
+ --invalidation-batch "{
+ \"Paths\": {
49
+ \"Quantity\": 1,
50
+ \"Items\": [\"${{ inputs.paths }}\"]
51
+ },
52
+ \"CallerReference\": \"${CALLER_REF}\"
53
+ }" \
54
--no-cli-pager
55
56
echo "✅ CloudFront invalidation created successfully!"
0 commit comments