From 882bcb94358c6b9c3188595d152df4c088f3b8ac Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Sun, 9 Feb 2025 21:35:54 +0100 Subject: [PATCH] build: make sure there is at least 35GB free for source cache (#45515) build: make sure there is at least 35GB free for cache Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt --- .github/actions/checkout/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index 9a289cc11afc..ba20c3f14c4b 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -73,10 +73,10 @@ runs: if: steps.check-cache.outputs.cache_exists == 'false' && inputs.use-cache == 'true' shell: bash run: | - # if there is less than 20 GB free space then creating the cache might fail so exit early + # if there is less than 35 GB free space then creating the cache might fail so exit early freespace=`df -m /mnt/cross-instance-cache | grep -w /mnt/cross-instance-cache | awk '{print $4}'` freespace_human=`df -h /mnt/cross-instance-cache | grep -w /mnt/cross-instance-cache | awk '{print $4}'` - if [ $freespace -le 20000 ]; then + if [ $freespace -le 35000 ]; then echo "The cross mount cache has $freespace_human free space which is not enough - exiting" exit 1 else