From 994e42d69c3ef48d246ba1be921360ea4204923b Mon Sep 17 00:00:00 2001 From: Neil Campbell Date: Mon, 26 Feb 2024 22:19:33 +0800 Subject: [PATCH] chore: fix ps1 script call --- .github/actions/build-binaries/windows/action.yaml | 6 +++--- .github/workflows/publish-release-packages.yaml | 2 +- scripts/winget/build-installer.ps1 | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/build-binaries/windows/action.yaml b/.github/actions/build-binaries/windows/action.yaml index 5781d323e..f38c9181a 100644 --- a/.github/actions/build-binaries/windows/action.yaml +++ b/.github/actions/build-binaries/windows/action.yaml @@ -79,9 +79,9 @@ runs: shell: pwsh run: | & .\scripts\winget\build-installer.ps1 ` - -binaryDir ${{ env.BINARY_BUILD_DIR }} ` - -releaseVersion ${{ inputs.version }} ` - -outputFile ${{ env.WINGET_INSTALLER }} + -binaryDir '${{ env.BINARY_BUILD_DIR }}' ` + -releaseVersion '${{ inputs.version }}' ` + -outputFile '${{ env.WINGET_INSTALLER }}' - name: Sign winget installer if: ${{ inputs.production_release == 'true' }} diff --git a/.github/workflows/publish-release-packages.yaml b/.github/workflows/publish-release-packages.yaml index ded685888..8cd330298 100644 --- a/.github/workflows/publish-release-packages.yaml +++ b/.github/workflows/publish-release-packages.yaml @@ -126,4 +126,4 @@ jobs: echo 'Publishing to winget' # The below can be uncommented after we've manually created the first release on winget # & .\scripts\winget\update-package.ps1 ` - # -releaseVersionTag ${{ inputs.release }} + # -releaseVersionTag '${{ inputs.release }}' diff --git a/scripts/winget/build-installer.ps1 b/scripts/winget/build-installer.ps1 index 31d4abca1..faf37bf9d 100644 --- a/scripts/winget/build-installer.ps1 +++ b/scripts/winget/build-installer.ps1 @@ -1,13 +1,13 @@ Param( - [Parameter(Mandatory=$true)] + [Parameter(Mandatory = $true)] [String] $binaryDir, - [Parameter(Mandatory=$true)] + [Parameter(Mandatory = $true)] [String] $releaseVersion, - [Parameter(Mandatory=$true)] + [Parameter(Mandatory = $true)] [String] $outputFile )