Skip to content

Commit af6e33c

Browse files
committed
Fix duplicate copy
1 parent 4a8d44b commit af6e33c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/windows-benchmark-baseline.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ jobs:
5656
throw "No benchmark JSON files found in $benchDir"
5757
}
5858
59-
Copy-Item -Path $latest.FullName -Destination (Join-Path $benchDir "0001_benchmark.json") -Force
59+
$target = Join-Path $benchDir "0001_benchmark.json"
60+
$latestPath = [System.IO.Path]::GetFullPath($latest.FullName)
61+
$targetPath = [System.IO.Path]::GetFullPath($target)
62+
if ($latestPath -ne $targetPath) {
63+
Copy-Item -Path $latest.FullName -Destination $target -Force
64+
}
6065
6166
- name: Upload benchmark baseline artifact
6267
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)