PATHS to all files
jakcst opened this issue · 3 comments
jakcst commented
I'm trying to create an invalidation to refresh all files in an s3 bucket.
I can't seem to figure out why I am getting this message:
*** Reading PATHS from /*
PATHS file not found. nothing to do. exiting
uses: chetan/invalidate-cloudfront-action@v2
chetan commented
@jakcst looks like I have a typo in the error message. It should say PATHS_FROM file not found. nothing to do. exiting
. If you are trying to pass a wildcard, you are using the wrong env var config. You should be setting PATHS=/*
instead.
chetan commented
Yes, the 'PATHS_FROM' variable is meant to point to a file which contains a
list of files to invalidate. Change that to 'PATHS' and it should work!
…On Fri, Dec 23, 2022 at 12:14 PM jakcst ***@***.***> wrote:
Thank you for the quick response! Here is the snippet from my yaml file.
Maybe I am doing something incorrectly?
- name: Create a CloudFront invalidation uses:
***@***.*** env: PATHS_FROM: '/*' AWS_REGION:
'us-east-1' DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY:
${{ secrets.AWS_SECRET_ACCESS_KEY }}
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGJMJT346C7KWV4WPNBOLWOXMX5ANCNFSM6AAAAAATH3FKTU>
.
You are receiving this because you commented.Message ID:
***@***.***>
jakcst commented
Got it. Many thanks!