Skip to content

Commit c779b8f

Browse files
authored
Merge pull request github#11479 from erik-krogh/swift-ignore-errors
Swift: don't crash on non-existing cache
2 parents e8fe0b0 + e5f1fe8 commit c779b8f

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)