We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93619ed commit fb55fe6Copy full SHA for fb55fe6
.github/workflows/pre.yml
@@ -25,12 +25,12 @@ jobs:
25
# Debugging step
26
- name: Pre-Cleanup Directory Listing
27
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
+ if ($env:OS -eq "Windows_NT") {
+ Get-ChildItem -Force -Recurse "$env:USERPROFILE\go\pkg\mod" || Write-Output "Directory does not exist"
+ } else {
31
ls -la ~/go/pkg/mod || echo "Directory does not exist"
32
- fi
33
- shell: bash
+ }
+ shell: pwsh
34
35
# Clean cache directories on Linux/Mac
36
- name: Clean Cache on Linux/Mac
0 commit comments