File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments