ci: Rm merge queue cache in cache-cleanup.yml (#1129)

since they cannot be reused

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-06-05 22:54:01 +10:00 committed by GitHub
parent 3cf2528273
commit cc87fe062d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -7,14 +7,12 @@ BRANCH="${BRANCH?}"
while true; do
echo "Fetching list of cache key for $BRANCH"
cacheKeysForPR="$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1 )"
cacheKeysForPR="$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1)"
if [ -z "$cacheKeysForPR" ]; then
break
fi
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do