Skip to content

Commit e5f1fe8

Browse files
committed
don't crash on non-existing cache in swift
1 parent 5bcb9b2 commit e5f1fe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/actions/build-and-test/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ runs:
5050
if: ${{ github.event_name != 'pull_request' }}
5151
shell: bash
5252
run: |
53-
find "~/.cache/bazel-repository-cache" "~/.cache/bazel-disk-cache" -atime +0 -type f -delete
54-
du -sh "~/.cache/bazel-repository-cache" "~/.cache/bazel-disk-cache"
53+
find "~/.cache/bazel-repository-cache" "~/.cache/bazel-disk-cache" -atime +0 -type f -delete || : # ignore errors if the cache is empty
54+
du -sh "~/.cache/bazel-repository-cache" "~/.cache/bazel-disk-cache" || : # ignore errors if the cache is empty

0 commit comments

Comments
 (0)