Skip to content

Commit f3838b2

Browse files
relax df so it will work on containers
1 parent 3532d9b commit f3838b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/freediskspace/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
if: runner.os == 'Linux'
2424
shell: bash
2525
run: |
26-
df -h /dev/root
26+
df -h /dev/root 2>/dev/null || df -h
2727
sudo rm -rf /usr/local/.ghcup
2828
sudo rm -rf /usr/local/julia1.10.5
2929
sudo rm -rf /usr/lib/heroku
@@ -32,4 +32,4 @@ runs:
3232
sudo apt-get remove -y '^mysql-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^mysql-.*' --fix-missing] failed to complete successfully. Proceeding..."
3333
sudo apt-get autoremove -y || echo "::warning::The command [sudo apt-get autoremove -y] failed to complete successfully. Proceeding..."
3434
sudo apt-get clean || echo "::warning::The command [sudo apt-get clean] failed to complete successfully. Proceeding..."
35-
df -h /dev/root
35+
df -h /dev/root 2>/dev/null || df -h

0 commit comments

Comments
 (0)