Skip to content

Commit

Permalink
Merge pull request #2 from Lostmyname/feature/ap_add-flags-v10
Browse files Browse the repository at this point in the history
adds the EXCLUDE input
  • Loading branch information
Aimypalo authored Dec 7, 2021
2 parents b849c72 + e45c142 commit 6aa5755
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This actions using the [AWS-CLI](https://docs.aws.amazon.com/cli/latest/userguid
| `SOURCE` | Your local file path that you wish to upload to S3 | **TRUE** | |
| `TARGET` | The destination of the source after sync in S3 | **TRUE** | |
| `WITH_DELETE` | If you want to use the [*--delete* flag](https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html#synopsis) | | |
| `EXCLUDE` | If you want to exclude files or folders from the sync use the [*--exclude* flag](https://docs.aws.amazon.com/cli/latest/reference/s3/index.html#use-of-exclude-and-include-filters) | | |
| `WITH_CLOUDFRONT_INVALIDATION` | If you want to use cloudfront invalidation | | |
| `AWS_CLOUDFRONT_DISTRIBUTION_ID` | The cloudfront distributions id (use only if you need invalidation) | | **SECRET** |
| `AWS_CLOUDFRONT_INVALIDATION_PATH` | Path to the cloudfront invalidation (use only if you need invalidation) | | |
Expand All @@ -39,7 +40,8 @@ jobs:
AWS_REGION:
AWS_BUCKET_NAME:
SOURCE:
TARGET:
TARGET:
EXCLUDE:
WITH_DELETE:
WITH_CLOUD_FRONT_INVALIDATION:
AWS_CLOUDFRONT_DISTRIBUTION_ID:
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ inputs:
WITH_DELETE:
description: If defined the s3 sync is executed with the --delete flag
required: false

EXCLUDE:
description: If defined the s3 sync is executed with the --exclude flag
required: false

WITH_CLOUD_FRONT_INVALIDATION:
description: If defined a cloudfront invalidation will be executed
Expand All @@ -57,6 +61,7 @@ runs:
- ${{ inputs.SOURCE }}
- ${{ inputs.TARGET }}
- ${{ inputs.WITH_DELETE }}
- ${{ inputs.EXCLUDE }}
- ${{ inputs.WITH_CLOUD_FRONT_INVALIDATION }}
- ${{ inputs.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
- ${{ inputs.AWS_CLOUDFRONT_INVALIDATION_PATH }}

0 comments on commit 6aa5755

Please sign in to comment.