You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: push-to-s3-and-invalidate-cloudfront/README.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Files are pushed to the S3 bucket depending on the user inputs supplied when the
6
6
Following examples describe how to use the action.
7
7
8
8
## Uploading to S3 based on user input
9
-
This example will **upload** the specified folder (`build-directory`) to a folder named `blog` on the S3 bucket(`myS3Bucket`). The action will not exclude any files while uploading them. The action will also invalidate the cloudfront cache.
9
+
This example will **upload** the specified folder (`build-directory`) to a folder named `blog` on the S3 bucket(`myS3Bucket`). The action will not exclude any files while uploading them. The action will also invalidate the cloudfront cache. The action will attempt a max of `5` (based on `aws-retry-attempts` value) retries for any AWS operations before erroring out.
@@ -22,10 +22,12 @@ This example will **upload** the specified folder (`build-directory`) to a folde
22
22
s3-dir-to-upload-to: "blog"
23
23
s3-files-to-exclude: ""
24
24
invalidate-cloudfront-cache: "true"
25
+
aws-retry-attempts: 5
25
26
```
26
27
27
28
## Deleting from S3 based on user input
28
-
This example will **delete** the specified folder (`build-directory`) from the S3 bucket(`myS3Bucket`). The action will also invalidate the cloudfront cache.
29
+
This example will **delete** the specified folder (`build-directory`) from the S3 bucket(`myS3Bucket`). The action will also invalidate the cloudfront cache. The action will attempt a max of `5` (based on `aws-retry-attempts` value) retries for any AWS operations before erroring out.
@@ -40,12 +42,14 @@ This example will **delete** the specified folder (`build-directory`) from the S
40
42
s3-action: "delete"
41
43
s3-dir-to-delete-from: "blog"
42
44
invalidate-cloudfront-cache: "true"
45
+
aws-retry-attempts: 5
43
46
```
44
47
45
48
## Uploading/Deleting to/from S3 with minimal user unput
46
49
If this action is called when a `pull_request` is `opened` or `syncronized`, then the example will **upload** the specified folder (`build-directory`) to a folder named `pr-previews/PR-123` on the S3 bucket (`myS3Bucket`). The action will exclude any files that start with the default `pr-previews` prefix. The action will not invalidate the cloudfront cache.
47
50
48
51
If this action is called when a `pull_request` is `closed`, then the example will **delete** the folder named `pr-previews/PR-123` on the S3 bucket (`myS3Bucket`).
52
+
The action will attempt a max of `2` (default) retries for any AWS operations before erroring out.
0 commit comments