don't crash on non-existing cache in swift

This commit is contained in:
erik-krogh
2022-11-29 15:02:08 +01:00
parent 5bcb9b285a
commit e5f1fe86e4

View File

@@ -50,5 +50,5 @@ runs:
if: ${{ github.event_name != 'pull_request' }}
shell: bash
run: |
find "~/.cache/bazel-repository-cache" "~/.cache/bazel-disk-cache" -atime +0 -type f -delete
du -sh "~/.cache/bazel-repository-cache" "~/.cache/bazel-disk-cache"
find "~/.cache/bazel-repository-cache" "~/.cache/bazel-disk-cache" -atime +0 -type f -delete || : # ignore errors if the cache is empty
du -sh "~/.cache/bazel-repository-cache" "~/.cache/bazel-disk-cache" || : # ignore errors if the cache is empty