From e74345ecdc34105b605ad2502709873f37515380 Mon Sep 17 00:00:00 2001 From: Louis Date: Sun, 17 Mar 2024 11:22:06 +0700 Subject: [PATCH] fix: clean working dir with long space support on Windows (#2399) --- .github/workflows/jan-electron-linter-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jan-electron-linter-and-test.yml b/.github/workflows/jan-electron-linter-and-test.yml index 40085391f1..891cd80517 100644 --- a/.github/workflows/jan-electron-linter-and-test.yml +++ b/.github/workflows/jan-electron-linter-and-test.yml @@ -73,10 +73,10 @@ jobs: steps: - name: Clean workspace run: | - Remove-Item -Path .\* -Force -Recurse + Remove-Item -Path "\\?\$(Get-Location)\*" -Force -Recurse $path = "$Env:APPDATA\jan" if (Test-Path $path) { - Remove-Item $path -Recurse -Force + Remove-Item "\\?\$path" -Recurse -Force } else { Write-Output "Folder does not exist." }