Skip to content

Commit fb55fe6

Browse files
committed
Another try
1 parent 93619ed commit fb55fe6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/pre.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
# Debugging step
2626
- name: Pre-Cleanup Directory Listing
2727
run: |
28-
if [ "${{ runner.os }}" = "Windows" ]; then
29-
Get-ChildItem -Force -Recurse $env:USERPROFILE\go\pkg\mod || Write-Output "Directory does not exist"
30-
else
28+
if ($env:OS -eq "Windows_NT") {
29+
Get-ChildItem -Force -Recurse "$env:USERPROFILE\go\pkg\mod" || Write-Output "Directory does not exist"
30+
} else {
3131
ls -la ~/go/pkg/mod || echo "Directory does not exist"
32-
fi
33-
shell: bash
32+
}
33+
shell: pwsh
3434

3535
# Clean cache directories on Linux/Mac
3636
- name: Clean Cache on Linux/Mac

0 commit comments

Comments
 (0)