.github/workflows/space.yml #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Show disk usage | |
| run: df -h | |
| - name: Top-level directories | |
| run: du -h -d5 / --exclude /var --exclude /run --exclude /boot --exclude /tmp --exclude /sys --exclude /proc --exclude /lost+found | sort -hr | head -n 100 | |
| - name: Show apt packages | |
| run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr | |
| - name: Detailed file sizes | |
| run: find / -type f -exec du -h {} + 2>/dev/null | sort -hr | head -n 10 |