forked from git-for-windows/git-for-windows-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 1.14 KB
/
sdk-missing-git-executable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
on: push
jobs:
missing-git-executable:
runs-on: dennis-windows-arm64
steps:
# This will use the GitHub API since Git isn't installed on the runner
- name: clone git-for-windows-automation
uses: actions/checkout@v4
# This will fail because Git isn't installed on the runner
- uses: dennisameling/setup-git-for-windows-sdk@e95ed5e0269958503b1ffbd56a5859c8f26d8a2b
continue-on-error: true
with:
flavor: build-installers
architecture: aarch64
- name: install GfW
shell: powershell
run: |
& ./azure-self-hosted-runners/post-deployment-script.ps1
Add-Content $env:GITHUB_PATH "C:\Program Files\Git\bin"
$currentPath = [System.Environment]::GetEnvironmentVariable("PATH", "Machine")
$newPath = 'C:\Program Files\Git\bin;' + $currentPath
[Environment]::SetEnvironmentVariable("PATH", $newPath, "Machine")
- name: try installing the SDK again
uses: dennisameling/setup-git-for-windows-sdk@e95ed5e0269958503b1ffbd56a5859c8f26d8a2b
with:
flavor: build-installers
architecture: aarch64