Skip to content

Commit d6b6909

Browse files
committed
fix path again
1 parent 5671867 commit d6b6909

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/windows-build.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,19 @@ jobs:
5656
shell: pwsh
5757
run: |
5858
$runDir = "$env:GITHUB_WORKSPACE\Run"
59-
$dataRepo = "$runDir\Data"
59+
$dataDir = "$runDir\Data"
6060
$testsDir = "$runDir\Tests"
6161
New-Item -ItemType Directory -Path $runDir -Force | Out-Null
62-
if (Test-Path "$dataRepo\.git") {
63-
git -C $dataRepo pull
62+
if (Test-Path "$dataDir\.git") {
63+
git -C $dataDir pull
6464
} else {
65-
if (Test-Path $dataRepo) { Remove-Item $dataRepo -Recurse -Force }
66-
git clone --single-branch https://github.com/OpenFodder/data.git $dataRepo
67-
}
68-
if (Test-Path "$dataRepo\Data") {
69-
Copy-Item "$dataRepo\Data" "$runDir\Data" -Recurse -Force
70-
} else {
71-
Copy-Item "$dataRepo\*" $runDir -Recurse -Force -Exclude ".git"
65+
if (Test-Path $dataDir) { Remove-Item $dataDir -Recurse -Force }
66+
git clone --single-branch https://github.com/OpenFodder/data.git $dataDir
7267
}
7368
if (Test-Path "$testsDir\.git") {
7469
git -C $testsDir pull
7570
} else {
71+
if (Test-Path $testsDir) { Remove-Item $testsDir -Recurse -Force }
7672
git clone https://github.com/OpenFodder/tests.git $testsDir
7773
}
7874
$ffmpegBin = "$env:GITHUB_WORKSPACE\vcpkg_installed\${{ matrix.vcpkg_triplet }}\bin"

0 commit comments

Comments
 (0)