From 46aee66664732b85f50e377687182715b3ec89e7 Mon Sep 17 00:00:00 2001 From: kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> Date: Wed, 4 Dec 2024 16:05:03 -0800 Subject: 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 --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.github/workflows/ci.yml') 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" -- cgit v1.2.3