Skip to content

Commit 93fb672

Browse files
committed
Install Git for Windows
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 448f560 commit 93fb672

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/whoami.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,21 @@ jobs:
1010
steps:
1111
- run: whoami /user /groups /priv
1212
- run: icacls "C:\\Program Files\\Git"
13+
- run: curl -Lo git-inst.exe https://github.com/git-for-windows/git-snapshots/releases/download/prerelease-2.48.1.windows.1-2-g3003038578-20250221120304/Git-prerelease-2.48.1.windows.1-2-g3003038578-20250221120304-arm64.exe
14+
- run: |
15+
$exePath = ".\git-inst.exe"
16+
$installer = Start-Process -PassThru -Wait -FilePath "$exePath" -ArgumentList "/SILENT /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /ALLOWDOWNGRADE=1 /LOG=installer.log"
17+
$exitCode = $installer.ExitCode
18+
if ($exitCode -ne 0) {
19+
Write-Host "::error::Installer failed with exit code $exitCode!"
20+
exit 1
21+
}
22+
- name: Publish installer log
23+
if: failure() || success()
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: installer.log
27+
path: installer.log
28+
retention-days: 5
29+
- shell: bash
30+
run: git version

0 commit comments

Comments
 (0)