ci: windows: prevent del errors when the directory doesn't exist

This commit is contained in:
Loris Cro 2022-11-25 20:35:39 +01:00
parent e096f972d0
commit c59d60893b

View File

@ -105,7 +105,7 @@ jobs:
- name: Switch to specific commit - name: Switch to specific commit
if: ${{ github.event_name == 'workflow_dispatch' }} if: ${{ github.event_name == 'workflow_dispatch' }}
run: | run: |
del -r ../ci if (Test-Path ../ci) { del -r ../ci }
cp ci ../ cp ci ../
git checkout ${{ inputs.commit }} git checkout ${{ inputs.commit }}
del -r ci del -r ci