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."
required: true
project:
description: "Itch.io project name."
description: "Itch.io project name. Default: the repository name."
required: true
default: ""
channel:
description: "Itch.io channel name."
required: true
@@ -52,12 +53,23 @@ runs:
password: ${{ inputs.password }}
nugetPasswords: ${{ inputs.nugetPasswords || inputs.password }}
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."
uses: act/common/itchio/butler-push@master
with:
file: ${{ steps.download.outputs.downloadedArtifactPath }}
account: ${{ inputs.account }}
project: ${{ inputs.project }}
project: ${{ steps.project.outputs.destProject }}
channel: ${{ inputs.channel }}
apiKey: ${{ inputs.apiKey }}
version: ${{ inputs.version }}