diff --git a/.github/workflows/gki-kernel.yml b/.github/workflows/gki-kernel.yml index bb3684cc0e46..db67aa3a2fac 100644 --- a/.github/workflows/gki-kernel.yml +++ b/.github/workflows/gki-kernel.yml @@ -182,7 +182,11 @@ jobs: - name: Check bazel cache if: inputs.use_cache == true run: - du -sh /home/runner/.cache/bazel + if [ -e /home/runner/.cache/bazel ]; then + du -sh /home/runner/.cache/bazel + find /home/runner/.cache/bazel -type f -size +10M -exec rm -f {} \; + du -sh /home/runner/.cache/bazel + fi - name: Prepare artifacts id: prepareArtifacts