Skip to content

Commit b4f18be

Browse files
committed
Added disk space cleanup
1 parent 4409237 commit b4f18be

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/api_refs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,28 @@ jobs:
4545
SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
4646
BASE_BRANCH: ${{ steps.version_and_branches.outputs.base_branch }}
4747
run: |
48+
echo "Space usage before installing dependencies:"
49+
df -h
50+
echo "Home realpath: $(realpath ~)"
51+
echo "Listing space usage of home directory:"
52+
time du -h -d1 ~
53+
time du -h -d1 ~/.local
54+
time du -h -d1 ~/actions-runner
55+
time du -h -d1 ~/actions-runner/cached
56+
time du -h -d1 ~/work
57+
58+
echo "Removing large packages"
59+
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm microsoft-edge-stable google-chrome-stable firefox powershell mono-devel
60+
sudo apt-get autoremove -y
61+
sudo apt-get clean
62+
63+
echo "Removing large directories"
64+
rm -rf /usr/share/dotnet/
65+
rm -rf /opt/hostedtoolcache
66+
67+
echo "Space usage after cleanup:"
68+
df -h
69+
4870
composer config --global http-basic.updates.ibexa.co $SATIS_NETWORK_KEY $SATIS_NETWORK_TOKEN
4971
if [[ '4.6' != $BASE_BRANCH ]]; then
5072
tools/api_refs/api_refs.sh

0 commit comments

Comments
 (0)