File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 with :
3737 dotnet-version : ' 6.0.x'
3838
39+ - name : Sync winget-pkgs fork
40+ shell : pwsh
41+ env :
42+ WINGET_TOKEN : ${{ secrets.WINGET_TOKEN }}
43+ run : |
44+ $headers = @{ Authorization = "token $env:WINGET_TOKEN"; "User-Agent" = "VirtualDesktopSwitcher-winget-sync" }
45+ $me = (Invoke-RestMethod -Uri "https://api.github.com/user" -Headers $headers).login
46+ $upstream = Invoke-RestMethod -Uri "https://api.github.com/repos/microsoft/winget-pkgs/git/refs/heads/master" -Headers $headers
47+ $body = @{ sha = $upstream.object.sha; force = $true } | ConvertTo-Json
48+ Invoke-RestMethod -Method Patch -Uri "https://api.github.com/repos/$me/winget-pkgs/git/refs/heads/master" `
49+ -Headers $headers -ContentType "application/json" -Body $body
50+
3951 - name : Submit winget PR
4052 shell : pwsh
4153 run : |
You can’t perform that action at this time.
0 commit comments