Skip to content

Commit

Permalink
Fix missing dir (windows is weird sometimes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kale-Ko committed Jun 28, 2024
1 parent aef2572 commit 8b303e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ jobs:

- name: Pre Setup JDK
run: |
Remove-Item -Recurse -Force -Path C:\hostedtoolcache\windows\Java_*\*
if (Test-Path C:\hostedtoolcache\windows) {
Remove-Item -Recurse -Force -Path C:\hostedtoolcache\windows\Java_*\*
}
- name: Setup JDK
uses: actions/setup-java@v4
Expand Down Expand Up @@ -497,7 +499,9 @@ jobs:
steps:
- name: Pre Setup JDK
run: |
Remove-Item -Recurse -Force -Path C:\hostedtoolcache\windows\Java_*\*
if (Test-Path "C:\hostedtoolcache\windows") {
Remove-Item -Recurse -Force -Path C:\hostedtoolcache\windows\Java_*\*
}
- name: Setup JDK
uses: actions/setup-java@v4
Expand Down

0 comments on commit 8b303e0

Please sign in to comment.