From e62049d59dba72f46c22b9b0185bf1b55b5acfd2 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 6 Jun 2023 14:09:05 +1000 Subject: [PATCH] ci: Fix `cache-cleanup.yml` non-zero exit status (#1136) ci: Fix `cache-cleanup.yml` `cut` non-zero exit status Signed-off-by: Jiahao XU --- .github/workflows/cache-cleanup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cache-cleanup.yml b/.github/workflows/cache-cleanup.yml index 2a9ad231..9af601fb 100644 --- a/.github/workflows/cache-cleanup.yml +++ b/.github/workflows/cache-cleanup.yml @@ -31,7 +31,7 @@ jobs: done ) # Remove merge queue cache, since they cannot be reused - gh actions-cache list -L 100 | cut -f 3 | grep 'gh-readonly-queue' | sort -u | ( + gh actions-cache list -L 100 | cut -f 3 | (grep 'gh-readonly-queue' || true) | sort -u | ( while IFS='$\n' read -r branch; do BRANCH="$branch" ./cleanup-cache.sh done