From 3ff357349fe7f43fa498e0c77dc65c730316012e Mon Sep 17 00:00:00 2001 From: Yashraj Dighe Date: Sun, 3 Mar 2024 14:42:59 +0530 Subject: [PATCH] added action.yml for gh-action --- action.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..057c20c --- /dev/null +++ b/action.yml @@ -0,0 +1,35 @@ +name: "AWS S3 Sync" +description: "This action syncs github repository with AWS S3 buckets" +author: yashrajdighe + +inputs: + source: + description: "source directory" + required: true + delete: + description: "delete files which does not exists ar source" + default: "False" + exclude: + description: "files to exclude" + default: "" + include: + description: "files to include" + default: "*" + destination: + description: "S3 bucket name with directory to sync data" + required: true + dryrun: + description: "Dry run the output" + default: "False" + + +runs: + using: docker + image: Dockerfile + env: + SOURCE: ${{ inputs.source }} + DELETE: ${{ inputs.delete }} + EXCLUDE: ${{ inputs.exclude }} + INCLUDE: ${{ inputs.include }} + DESTINATION: ${{ inputs.destination }} + DRYRUN: ${{ inputs.dryrun }}