From 17982c5f7b9dc9823b1d8d1897ac0a6d7ece0c98 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Fri, 24 Jan 2020 15:01:51 -0500 Subject: [PATCH] . --- .github/workflows/test.yml | 4 ++++ __test__/override-git-version.cmd | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100755 __test__/override-git-version.cmd diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e7b41a..585d74f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -87,7 +87,11 @@ jobs: - name: Remove basic run: rm -rf basic - name: Override git version + if: runner.os != 'windows' run: __test__/override-git-version.sh + - name: Override git version (Windows) + if: runner.os == 'windows' + run: __test__\\override-git-version.cmd - name: Basic checkout using REST API uses: ./ with: diff --git a/__test__/override-git-version.cmd b/__test__/override-git-version.cmd new file mode 100755 index 0000000..413bc41 --- /dev/null +++ b/__test__/override-git-version.cmd @@ -0,0 +1,6 @@ + +mkdir override-git-version +cd override-git-version +echo @echo override git version 1.2.3 > git.cmd +echo ::add-path::%CD% +cd ..