Fix project default.

This commit is contained in:
2025-07-10 22:45:01 -07:00
parent 45e6ab1b66
commit fbfe9807c8
2 changed files with 15 additions and 2 deletions

View File

@@ -29,8 +29,9 @@ inputs:
description: "Itch.io account name." description: "Itch.io account name."
required: true required: true
project: project:
description: "Itch.io project name." description: "Itch.io project name. Default: the repository name."
required: true required: true
default: ""
channel: channel:
description: "Itch.io channel name." description: "Itch.io channel name."
required: true required: true
@@ -52,12 +53,23 @@ 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 Project name."
id: project
run: |
if [[ -n "${{ inputs.project }}" ]]; then
echo "destProject=${{ inputs.project }}" >> "$GITHUB_OUTPUT"
else
REPO="${{ github.repository }}"
REPO="${REPO##*/}"
echo "destProject=$REPO" >> "$GITHUB_OUTPUT"
fi
shell: bash
- name: "Copy files to Itch.io." - name: "Copy files to Itch.io."
uses: act/common/itchio/butler-push@master uses: act/common/itchio/butler-push@master
with: with:
file: ${{ steps.download.outputs.downloadedArtifactPath }} file: ${{ steps.download.outputs.downloadedArtifactPath }}
account: ${{ inputs.account }} account: ${{ inputs.account }}
project: ${{ inputs.project }} project: ${{ steps.project.outputs.destProject }}
channel: ${{ inputs.channel }} channel: ${{ inputs.channel }}
apiKey: ${{ inputs.apiKey }} apiKey: ${{ inputs.apiKey }}
version: ${{ inputs.version }} version: ${{ inputs.version }}

View File

@@ -28,6 +28,7 @@ inputs:
destBucket: destBucket:
description: "Destination bucket. Default: the repository name." description: "Destination bucket. Default: the repository name."
required: true required: true
default: ""
minioAccessKey: minioAccessKey:
description: "S3 access key." description: "S3 access key."
required: true required: true