diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index c0817ab4e9..a3a249be61 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -36,5 +36,5 @@ jobs: # Runs commands using the runners shell - name: Submit package to Windows Package Manager Community Repository Manually run: | - iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe + iwr https://github.com/microsoft/winget-create/releases/download/v1.0.4.0/wingetcreate.exe -OutFile wingetcreate.exe .\wingetcreate.exe update Nushell.Nushell -s -v ${{ github.event.inputs.ver }} -u ${{ github.event.inputs.uri }} -t ${{ secrets.NUSHELL_PAT }} diff --git a/.github/workflows/winget-submission.yml b/.github/workflows/winget-submission.yml index eb2e3f406b..7fabe7070c 100644 --- a/.github/workflows/winget-submission.yml +++ b/.github/workflows/winget-submission.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Submit package to Windows Package Manager Community Repository run: | - iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe + iwr https://github.com/microsoft/winget-create/releases/download/v1.0.4.0/wingetcreate.exe -OutFile wingetcreate.exe $github = Get-Content '${{ github.event_path }}' | ConvertFrom-Json $installerUrl = $github.release.assets | Where-Object -Property name -match 'windows-msvc.msi' | Select -ExpandProperty browser_download_url -First 1 .\wingetcreate.exe update Nushell.Nushell -s -v $github.release.tag_name -u $installerUrl -t ${{ secrets.NUSHELL_PAT }}