File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments