Skip to content

Commit b7838c4

Browse files
committed
ci: fix invocation of git.exe version
The `cmd/git.exe` file is not part of all of the flavors... Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8ef99b3 commit b7838c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ jobs:
250250
id: build-artifact
251251
shell: bash
252252
run: |
253+
set -x &&
253254
case "${{ matrix.artifact }}" in
254255
full)
255256
git --git-dir=.sdk worktree add --detach sdk-artifact
@@ -262,7 +263,9 @@ jobs:
262263
${{ matrix.artifact }}
263264
;;
264265
esac &&
265-
echo "git-version=$(sdk-artifact/cmd/git.exe version)" >>$GITHUB_OUTPUT &&
266+
ls -la sdk-artifact/ &&
267+
version="$(sdk-artifact/${{ matrix.arch.mingw-prefix }}/bin/git.exe version)" &&
268+
echo "git-version=$version" >>$GITHUB_OUTPUT &&
266269
cygpath -aw "$PWD/sdk-artifact/usr/bin/core_perl" >>$GITHUB_PATH &&
267270
cygpath -aw "$PWD/sdk-artifact/usr/bin" >>$GITHUB_PATH &&
268271
cygpath -aw "$PWD/sdk-artifact/${{ matrix.arch.mingw-prefix }}/bin" >>$GITHUB_PATH &&

0 commit comments

Comments
 (0)