Updated bucket name.
This commit is contained in:
@@ -26,7 +26,7 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: "*"
|
default: "*"
|
||||||
destBucket:
|
destBucket:
|
||||||
description: "Destination bucket."
|
description: "Destination bucket. Default: the repository name."
|
||||||
required: true
|
required: true
|
||||||
minioAccessKey:
|
minioAccessKey:
|
||||||
description: "S3 access key."
|
description: "S3 access key."
|
||||||
@@ -60,11 +60,22 @@ runs:
|
|||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
nugetPasswords: ${{ inputs.nugetPasswords || inputs.password }}
|
nugetPasswords: ${{ inputs.nugetPasswords || inputs.password }}
|
||||||
unzipDir: ${{ inputs.unzipDir }}
|
unzipDir: ${{ inputs.unzipDir }}
|
||||||
|
- name: "Get Bucket name."
|
||||||
|
id: bucket
|
||||||
|
run: |
|
||||||
|
if [[ -n "${{ inputs.destBucket }}" ]]; then
|
||||||
|
echo "destBucket=${{ inputs.destBucket }}" >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
REPO="${{ github.repository }}"
|
||||||
|
REPO="${REPO##*/}"
|
||||||
|
echo "destBucket=$REPO" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
- name: "Copy files to Itch.io."
|
- name: "Copy files to Itch.io."
|
||||||
uses: act/common/minio/mc-cp@master
|
uses: act/common/minio/mc-cp@master
|
||||||
with:
|
with:
|
||||||
target: ${{ steps.download.outputs.downloadedArtifactPath }}
|
target: ${{ steps.download.outputs.downloadedArtifactPath }}
|
||||||
destBucket: ${{ inputs.alias }}/${{ inputs.destBucket }}
|
destBucket: ${{ inputs.alias }}/${{ steps.bucket.outputs.destBucket }}
|
||||||
minioAccessKey: ${{ inputs.minioAccessKey }}
|
minioAccessKey: ${{ inputs.minioAccessKey }}
|
||||||
minioSecretKey: ${{ inputs.minioSecretKey }}
|
minioSecretKey: ${{ inputs.minioSecretKey }}
|
||||||
alias: ${{ inputs.alias }}
|
alias: ${{ inputs.alias }}
|
||||||
|
|||||||
Reference in New Issue
Block a user