Fix WinGet version bump (#1165)

Use WinGet to install `wingetcreate`, rather than using
Invoke-WebRequest
This commit is contained in:
Evan Simkowitz 2024-10-28 22:45:13 -07:00 committed by GitHub
parent b56d154c13
commit a170e2c80c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -46,6 +46,9 @@ jobs:
with: with:
version: 3.x version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install wingetcreate
run: winget install wingetcreate
shell: pwsh
- name: Submit WinGet version bump - name: Submit WinGet version bump
run: "task artifacts:winget:publish:${{ github.ref_name }}" run: "task artifacts:winget:publish:${{ github.ref_name }}"
env: env:

View File

@ -247,8 +247,7 @@ tasks:
vars: vars:
UP_VERSION: '{{ replace "v" "" (index .MATCH 0)}}' UP_VERSION: '{{ replace "v" "" (index .MATCH 0)}}'
cmd: | cmd: |
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe wingetcreate update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.msi" -t $env:GITHUB_TOKEN
.\wingetcreate.exe update {{.WINGET_PACKAGE}} -s -v {{.UP_VERSION}} -u "https://{{.RELEASES_BUCKET}}/{{.APP_NAME}}-win32-x64-{{.UP_VERSION}}.msi" -t $env:GITHUB_TOKEN
yarn: yarn:
desc: Runs `yarn` desc: Runs `yarn`