We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24746bc commit 118ea59Copy full SHA for 118ea59
.github/workflows/release.yaml
@@ -40,6 +40,5 @@ jobs:
40
Invoke-WebRequest -Uri 'https://aka.ms/wingetcreate/latest' -OutFile 'wingetcreate.exe'
41
- name: Create WinGet Package Update Pull Request
42
run: |
43
- $latestRelease = Invoke-RestMethod -Uri https://api.github.com/repos/gptscript-ai/gptscript/releases/latest
44
- $url = $latestRelease.assets | Where-Object { $_.name -eq ("gptscript-" + $latestRelease.tag_name + "-windows-amd64.zip") } | Select-Object -ExpandProperty browser_download_url
+ $url = "${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.ref_name }}/gptscript-${{ github.ref_name }}-windows-amd64.zip"
45
./wingetcreate.exe update --submit --token "${{ secrets.WINGET_GH_TOKEN }}" --urls $url --version "${{ github.ref_name }}" gptscript-ai.gptscript
0 commit comments