forked from cli/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (22 loc) · 879 Bytes
/
tmp.yml
File metadata and controls
23 lines (22 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: manual winget bump
on: workflow_dispatch
jobs:
wingetbump:
runs-on: windows-latest
steps:
- name: get winget
shell: pwsh
env:
#WINGETCREATE_VERSION: v0.2.0.29-preview
WINGETCREATE_VERSION: v0.5.0.1-preview
run: iwr https://github.com/microsoft/winget-create/releases/download/${env:WINGETCREATE_VERSION}/wingetcreate.exe -OutFile wingetcreate.exe
- name: bump
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.UPLOAD_GITHUB_TOKEN }}
run: |
$tagname = "v2.5.2"
$version = "2.5.2"
$url = "https://github.com/cli/cli/releases/download/${tagname}/gh_${version}_windows_amd64.msi"
.\wingetcreate.exe update GitHub.cli -u $url --version $version
.\wingetcreate.exe submit .\manifests\g\GitHub\cli\${version}\ --token $env:GITHUB_TOKEN