Skip to content

Commit d976d13

Browse files
committed
fix: expose Git command on Windows CI
Write the built command directory to GITHUB_PATH using a native Windows path so git.exe can discover git-subcommit.exe.
1 parent a3a7ef2 commit d976d13

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ jobs:
4343

4444
- name: Add built commands to PATH
4545
shell: bash
46-
run: echo "$PWD/bin" >> "$GITHUB_PATH"
46+
run: |
47+
path="$PWD/bin"
48+
if [ "$RUNNER_OS" = "Windows" ]; then
49+
path=$(cygpath --windows "$path")
50+
fi
51+
echo "$path" >> "$GITHUB_PATH"
4752
4853
- name: Smoke-test commands and completion
4954
shell: bash

0 commit comments

Comments
 (0)