diff --git a/itchio/butler-push-previous-artifacts/action.yaml b/itchio/butler-push-previous-artifacts/action.yaml index 72c0ee1..26f8dfb 100644 --- a/itchio/butler-push-previous-artifacts/action.yaml +++ b/itchio/butler-push-previous-artifacts/action.yaml @@ -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 }} diff --git a/minio/mc-cp-previous-artifacts/action.yaml b/minio/mc-cp-previous-artifacts/action.yaml index 00712dc..edfed4c 100644 --- a/minio/mc-cp-previous-artifacts/action.yaml +++ b/minio/mc-cp-previous-artifacts/action.yaml @@ -28,6 +28,7 @@ inputs: destBucket: description: "Destination bucket. Default: the repository name." required: true + default: "" minioAccessKey: description: "S3 access key." required: true