From c32e7c42385b0c50c8c8a5cfa45dc6549aa91062 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 28 Aug 2025 06:24:59 +0200 Subject: [PATCH] feat: reorganise params --- README.md | 1 + action.yml | 4 ++-- entrypoint.sh | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5dc28ed..5dea03c 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ jobs: bucket: 'mybucket' source_dir 'public' target_dir: '/' + options: '--overwrite --exclude ".*"' ``` ## License diff --git a/action.yml b/action.yml index d030ecb..a29c9b6 100644 --- a/action.yml +++ b/action.yml @@ -34,9 +34,9 @@ runs: MINIO_ACCESS_KEY: ${{ inputs.access_key }} MINIO_SECRET_KEY: ${{ inputs.secret_key }} args: - - ${{ inputs.source_dir }} - - "${{ inputs.bucket }}${{ inputs.target_dir }}" - ${{ inputs.options }} + - ${{ inputs.source_dir }} + - ${{ inputs.bucket }}/${{ inputs.target_dir }} branding: icon: "upload-cloud" color: "black" diff --git a/entrypoint.sh b/entrypoint.sh index 486417b..d543142 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ set -euo pipefail mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY --api S3v4 -echo "$1 deploy/$2 $3" +echo "$1 $2 deploy/$3" echo "Mirroring" -mc mirror --overwrite $1 "deploy/$2" $3 +mc mirror $1 $2 "deploy/$3"