From 6762dfde4098c307fb8b1c3a78474e33666c8ed1 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 25 Aug 2024 21:03:55 +1000 Subject: [PATCH] Fix adding windows defender exclusion path Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/actions/just-setup/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/just-setup/action.yml b/.github/actions/just-setup/action.yml index 137ea05f..bb7ec210 100644 --- a/.github/actions/just-setup/action.yml +++ b/.github/actions/just-setup/action.yml @@ -35,8 +35,8 @@ runs: - name: Exclude workspace and cargo/rustup home from windows defender if: runner.os == 'Windows' run: | - Add-MpPreference -ExclusionPath $DEV_DRIVE -ExclusionPath $PWD - shell: bash + Add-MpPreference -ExclusionPath $DEV_DRIVE -ExclusionPath ${{ github.workspace }} + shell: pwsh - uses: samypr100/setup-dev-drive@v3 if: runner.os == 'Windows'