diff --git a/.github/workflows/build-tool-packages.yml b/.github/workflows/build-tool-packages.yml index adca8dd..6246267 100644 --- a/.github/workflows/build-tool-packages.yml +++ b/.github/workflows/build-tool-packages.yml @@ -20,7 +20,7 @@ on: description: "Whether to publish releases" required: true type: boolean - + defaults: run: shell: pwsh @@ -66,7 +66,7 @@ jobs: ./builders/build-${{ inputs.tool-name }}.ps1 -Version ${{ inputs.tool-version }} ` -Platform ${{ matrix.platform }} ` -Architecture ${{ matrix.architecture }} - + - name: Publish artifact uses: actions/upload-artifact@v3 @@ -112,7 +112,7 @@ jobs: if ('${{ matrix.platform }}' -eq 'win32') { if ('${{ inputs.tool-name }}' -eq 'node') { $artifactName = "${{ env.ARTIFACT_NAME }}.7z" - } elseif ('${{ inputs.tool-name }}' -eq 'go') { + } elseif ('${{ inputs.tool-name }}' -eq 'go') { $artifactName = "${{ env.ARTIFACT_NAME }}.zip" } else { Write-Host "Unsupported tool - ${{ inputs.tool-name }}" @@ -171,7 +171,7 @@ jobs: - name: Generate release body id: generate-release-body - run: | + run: | if ('${{ inputs.tool-name }}' -eq 'node') { $releaseBody = 'Node.js ${{ inputs.tool-version }}' } else { @@ -200,7 +200,7 @@ jobs: $hashString = "$actualHash $($packageObj.Name)" Write-Host "$hashString" Add-Content -Path ./hashes.sha256 -Value "$hashString" - } + } - name: Upload release assets uses: actions/github-script@v6 @@ -220,7 +220,7 @@ jobs: data: fs.lstatSync(artifactDir).isDirectory() ? fs.readFileSync(`./${artifactDir}/${artifactName}`) : fs.readFileSync(`./${artifactName}`).toString() }); } - + trigger_pr: name: Trigger "Create Pull Request" workflow needs: publish_release