We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d81386 commit 018d45bCopy full SHA for 018d45b
.github/workflows/pre.yml
@@ -33,7 +33,12 @@ jobs:
33
- name: Clean Cache on Windows
34
if: runner.os == 'Windows'
35
run: |
36
- Remove-Item -Recurse -Force $env:USERPROFILE\.cache\go-build, $env:USERPROFILE\go\pkg\mod
+ 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
42
shell: pwsh
43
44
# Cache Go modules to speed up builds
0 commit comments