Skip to content

Commit 46aee66

Browse files
authored
Relocate the step of 'Add bash to PATH' (#5759)
* Relocate the step of 'Add bash to PATH' Relocate the step of 'Add bash to PATH' at beginning of the CI to avoid the issue of "bash command not found". * formatting * Do not remove 'Add bash to PATH' from common-setup
1 parent 1ce5e78 commit 46aee66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ jobs:
7575
shell: bash
7676

7777
steps:
78+
- name: Add bash to PATH
79+
shell: pwsh
80+
if: ${{matrix.os == 'windows'}}
81+
run: |
82+
Add-Content -Path $env:GITHUB_PATH -Value "C:\\Program Files\\Git\\bin"
83+
Add-Content -Path $env:GITHUB_PATH -Value "C:\\Program Files\\Git\\usr\\bin"
84+
7885
- uses: actions/checkout@v4
7986
with:
8087
submodules: "recursive"

0 commit comments

Comments
 (0)