Skip to content

Commit

Permalink
Update temp folder cleanup workflow to use PowerShell for directory l…
Browse files Browse the repository at this point in the history
…isting
  • Loading branch information
prasadhonrao committed Dec 5, 2024
1 parent 2a7c65b commit 980519e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/misc-temp-folder-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
if: ${{ runner.os == 'Windows' }} && (exists 'C:\temp')
run: |
echo "Listing all folders in C:\temp..."
dir C:\temp /AD /B
# PowerShell command to list directories in C:\temp
Get-ChildItem -Path C:\temp -Directory | Select-Object -ExpandProperty Name
shell: pwsh

# Step 3: Delete all folders in C:\temp
Expand Down

0 comments on commit 980519e

Please sign in to comment.