This commit is contained in:
2023-04-27 23:35:44 -07:00
parent 215a7d4a99
commit b4730291cf
4 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ runs:
uses: act/common/minio/mc@master
with:
alias: ${{ inputs.alias }}
args: ${{ steps.command.outputs.command }}
command: ${{ steps.command.outputs.command }}
accessKey: ${{ inputs.accessKey }}
secretKey: ${{ inputs.secretKey }}
url: ${{ inputs.url }}

View File

@@ -41,7 +41,7 @@ runs:
uses: act/common/minio/mc@master
with:
alias: ${{ inputs.alias }}
args: ${{ steps.command.outputs.command }}
command: ${{ steps.command.outputs.command }}
accessKey: ${{ inputs.accessKey }}
secretKey: ${{ inputs.secretKey }}
url: ${{ inputs.url }}

View File

@@ -1,7 +1,7 @@
name: mc
description: "Run MinIO Client mc commands."
inputs:
args:
command:
description: "Arguments to pass into mc."
required: true
alias:

View File

@@ -4,7 +4,7 @@ ARGS="$@"
MC_CONFIG_DIR="/root/.mc"
mkdir -p "$MC_CONFIG_DIR"
mc --config-dir "$MC_CONFIG_DIR" alias set $S3_ALIAS "$S3_URL" "$S3_ACCESS_KEY_ID" "$S3_SECRET_ACCESS_KEY"
mc --config-dir "$MC_CONFIG_DIR" alias set "$S3_ALIAS" "$S3_URL" "$S3_ACCESS_KEY_ID" "$S3_SECRET_ACCESS_KEY"
OUTPUT=$(bash -c "mc --config-dir $MC_CONFIG_DIR $ARGS")
RESULT=$?