Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add single file copy mode #282

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/reusable-copy-to-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ on:
required: false
description: |
the command to use, whether cp (copy) or sync
single-file:
type: boolean
default: false
required: false
description: |
single file copy (only for `cp`, no effect for `sync`)
direction:
type: string
default: to
Expand Down Expand Up @@ -119,7 +125,9 @@ jobs:
ARGS=()
case "$CP_OR_SYNC" in
cp)
ARGS+=(--recursive)
if [ ${{ inputs.single-file }} = false ]; then
ARGS+=(--recursive)
fi
;;
sync)

Expand Down
Loading