Updated minio.

This commit is contained in:
2025-07-10 22:56:21 -07:00
parent fbfe9807c8
commit 483a743e54

View File

@@ -26,9 +26,13 @@ inputs:
required: false
default: "*"
destBucket:
description: "Destination bucket. Default: the repository name."
description: "Destination bucket."
required: true
default: ""
useRepoAsBucket:
description: "Use the repository name as the bucket name appended to the destBucket. Default: false"
required: false
default: "false"
minioAccessKey:
description: "S3 access key."
required: true
@@ -64,13 +68,17 @@ runs:
- name: "Get Bucket name."
id: bucket
run: |
if [[ -n "${{ inputs.destBucket }}" ]]; then
echo "destBucket=${{ inputs.destBucket }}" >> "$GITHUB_OUTPUT"
else
BUCKET="${{ inputs.destBucket }}"
if [[ "${{ inputs.useRepoAsBucket }}" == "true" ]]; then
REPO="${{ github.repository }}"
REPO="${REPO##*/}"
echo "destBucket=$REPO" >> "$GITHUB_OUTPUT"
if [[ -n "$BUCKET" ]]; then
BUCKET="$BUCKET-$REPO"
else
BUCKET="$REPO"
fi
fi
echo "destBucket=$BUCKET" >> "$GITHUB_OUTPUT"
shell: bash
- name: "Copy files to Itch.io."
uses: act/common/minio/mc-cp@master