Skip to content

Commit 018d45b

Browse files
committed
Made another correction.
1 parent 6d81386 commit 018d45b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pre.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ jobs:
3333
- name: Clean Cache on Windows
3434
if: runner.os == 'Windows'
3535
run: |
36-
Remove-Item -Recurse -Force $env:USERPROFILE\.cache\go-build, $env:USERPROFILE\go\pkg\mod
36+
if (Test-Path -Path "$env:USERPROFILE\.cache\go-build") {
37+
Remove-Item -Recurse -Force "$env:USERPROFILE\.cache\go-build"
38+
}
39+
if (Test-Path -Path "$env:USERPROFILE\go\pkg\mod") {
40+
Remove-Item -Recurse -Force "$env:USERPROFILE\go\pkg\mod"
41+
}
3742
shell: pwsh
3843

3944
# Cache Go modules to speed up builds

0 commit comments

Comments
 (0)