Skip to content

Commit

Permalink
added action.yml for gh-action
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajdighe committed Mar 3, 2024
1 parent 93046c0 commit 3ff3573
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 3ff3573

Please sign in to comment.