From 25f7bbc9c2b4b67b34213e8e7d03ac8b87cc92d8 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Thu, 2 Mar 2023 11:58:42 -0800 Subject: [PATCH] Add '-Force' to `Move-Item` to fix the GitHub workflow (#19262) --- .github/workflows/exp-json.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/exp-json.yml b/.github/workflows/exp-json.yml index 629ff0f55e..4d3fbfecc0 100644 --- a/.github/workflows/exp-json.yml +++ b/.github/workflows/exp-json.yml @@ -117,20 +117,20 @@ jobs: Write-Verbose -Verbose "Create PR Windows == $createPrWin" $createPrLinux = ShouldCreatePR $currentLinuxFile $newLinuxFile - Write-Verbose -Verbose "Create PR Windows == $createPrLinux" + Write-Verbose -Verbose "Create PR Linux == $createPrLinux" $createPr = $createPrWin -or $createPrLinux Write-Verbose -Verbose "Create PR == $createPr" if ($createPrWin) { - Move-Item $newWinFile $currentWinFile -Verbose + Move-Item $newWinFile $currentWinFile -Verbose -Force } else { Remove-Item $newWinFile -Verbose } if ($createPrLinux) { - Move-Item $newLinuxFile $currentLinuxFile -Verbose + Move-Item $newLinuxFile $currentLinuxFile -Verbose -Force } else { Remove-Item $newLinuxFile -Verbose