summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-12-04 16:05:03 -0800
committerGitHub <noreply@github.com>2024-12-04 16:05:03 -0800
commit46aee66664732b85f50e377687182715b3ec89e7 (patch)
treeab062ae91e2edf8630b1903a961917b97b58f771 /.github/workflows/ci.yml
parent1ce5e781633f0c470f334b75e962b450a069982e (diff)
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
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1303d7fca..ce7c821fd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -75,6 +75,13 @@ jobs:
shell: bash
steps:
+ - name: Add bash to PATH
+ shell: pwsh
+ if: ${{matrix.os == 'windows'}}
+ run: |
+ Add-Content -Path $env:GITHUB_PATH -Value "C:\\Program Files\\Git\\bin"
+ Add-Content -Path $env:GITHUB_PATH -Value "C:\\Program Files\\Git\\usr\\bin"
+
- uses: actions/checkout@v4
with:
submodules: "recursive"