From 286fb0e20e48859f129ccf568d03248805bcbc61 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 9 Aug 2023 21:37:50 -0700 Subject: fix: :bug: kill server before trying to delete exe on windows --- .github/workflows/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 55b3e88f..ef00302e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -138,7 +138,9 @@ jobs: # Package again and build+upload the .vsix - name: Remove exe directory (Windows) - run: Remove-Item -Path "extension/server/exe" -Recurse -Force + run: | + FOR /F "tokens=5" %a IN ('netstat -ano ^| findstr "65432"') DO taskkill /PID %a /F + Remove-Item -Path "extension/server/exe" -Recurse -Force if: matrix.os == 'windows-latest' - name: Remove exe directory (Mac/Linux) -- cgit v1.2.3-70-g09d2