Fix project default.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user