test
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: mc
|
||||
description: "Run MinIO Client mc commands."
|
||||
inputs:
|
||||
args:
|
||||
command:
|
||||
description: "Arguments to pass into mc."
|
||||
required: true
|
||||
alias:
|
||||
|
||||
@@ -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=$?
|
||||
|
||||
Reference in New Issue
Block a user