From 76d622ddf0f3496afd1a87468ea7d0c2c3a23e2d Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Wed, 13 Nov 2024 11:30:36 -0500 Subject: [PATCH] `orphaned-files-check.yml` test fix (#53087) --- .github/workflows/orphaned-files-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/orphaned-files-check.yml b/.github/workflows/orphaned-files-check.yml index 0aa347f33e..c914a5d39c 100644 --- a/.github/workflows/orphaned-files-check.yml +++ b/.github/workflows/orphaned-files-check.yml @@ -56,7 +56,7 @@ jobs: # The `-s` is to make npm run silent and not print verbose # information about the npm script alias. assetFilesToRemove=$(npm run -s find-orphaned-assets) - reusableFilesToRemove=$(npm run -s reusables -- find unused | grep '^data/reusables') + reusableFilesToRemove=$(npm run -s reusables -- find unused | grep '^data/reusables' || true) [ -z "$assetFilesToRemove" ] && [ -z "$reusableFilesToRemove" ] && exit 0 if [ -n "$assetFilesToRemove" ]; then