Stop bumping winget manifest as part of release automation (#5699)
This commit is contained in:
parent
d2683a1370
commit
6703677a95
1 changed files with 0 additions and 15 deletions
15
.github/workflows/releases.yml
vendored
15
.github/workflows/releases.yml
vendored
|
|
@ -218,18 +218,3 @@ jobs:
|
|||
GIT_AUTHOR_NAME: cli automation
|
||||
GIT_COMMITTER_EMAIL: noreply@github.com
|
||||
GIT_AUTHOR_EMAIL: noreply@github.com
|
||||
- name: Bump Winget manifest
|
||||
shell: pwsh
|
||||
env:
|
||||
WINGETCREATE_VERSION: v1.0.3.0
|
||||
GITHUB_TOKEN: ${{ secrets.UPLOAD_GITHUB_TOKEN }}
|
||||
run: |
|
||||
$tagname = $env:GITHUB_REF.Replace("refs/tags/", "")
|
||||
$version = $tagname.Replace("v", "")
|
||||
$url = "https://github.com/cli/cli/releases/download/${tagname}/gh_${version}_windows_amd64.msi"
|
||||
iwr https://github.com/microsoft/winget-create/releases/download/${env:WINGETCREATE_VERSION}/wingetcreate.exe -OutFile wingetcreate.exe
|
||||
|
||||
.\wingetcreate.exe update GitHub.cli --url $url --version $version
|
||||
if ($version -notmatch "-") {
|
||||
.\wingetcreate.exe submit .\manifests\g\GitHub\cli\${version}\ --token $env:GITHUB_TOKEN
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue