Skip to content

Commit 62eb6e8

Browse files
committed
Test winget as another way to upgrade GfW on CI
Upgrading Git for Windows is not usually needed at all. The idea here is to test `winget` to see if it can do it more simply than the code that has been added and removed multiple times before that downloads the installer from the GitHub release and runs it, passing a number of non-obvious InnoSetup arguments. If this works, then it could be a one-liner, but we would still not want to do it by default, and also it may be that not all runners will have `winget` installed or that not all runners will have `winget` set up in a usable way. This applies only to Windows, of course.
1 parent 4fe8e38 commit 62eb6e8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ jobs:
254254
runs-on: ${{ matrix.os }}
255255

256256
steps:
257+
- name: Upgrade Git for Windows
258+
if: startsWith(matrix.os, 'windows')
259+
run: winget upgrade git --accept-source-agreements
257260
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
258261
with:
259262
persist-credentials: false
@@ -323,6 +326,8 @@ jobs:
323326
runs-on: ${{ matrix.os }}
324327

325328
steps:
329+
- name: Upgrade Git for Windows
330+
run: winget upgrade git --accept-source-agreements
326331
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
327332
with:
328333
persist-credentials: false

0 commit comments

Comments
 (0)