File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -197,3 +197,18 @@ jobs:
197197 GIT_AUTHOR_NAME : cli automation
198198 GIT_COMMITTER_EMAIL : noreply@github.com
199199 GIT_AUTHOR_EMAIL : noreply@github.com
200+ - name : Bump Winget manifest
201+ shell : pwsh
202+ env :
203+ WINGETCREATE_VERSION : v0.2.0.29-preview
204+ GITHUB_TOKEN : ${{ secrets.UPLOAD_GITHUB_TOKEN }}
205+ run : |
206+ $tagname = $env:GITHUB_REF.Replace("refs/tags/", "")
207+ $version = $tagname.Replace("v", "")
208+ $url = "https://github.com/cli/cli/releases/download/${tagname}/gh_${version}_windows_amd64.msi"
209+ iwr https://github.com/microsoft/winget-create/releases/download/${env:WINGETCREATE_VERSION}/wingetcreate.exe -OutFile wingetcreate.exe
210+
211+ .\wingetcreate.exe update GitHub.cli --url $url --version $version
212+ if ($version -notmatch "-") {
213+ .\wingetcreate.exe submit .\manifests\g\GitHub\cli\${version}\ --token $env:GITHUB_TOKEN
214+ }
You can’t perform that action at this time.
0 commit comments