From 2704bf8b0438b8a78145ae04438864fe1d2a634a Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Thu, 14 Sep 2023 10:09:23 +0200 Subject: [PATCH] sliced --- .github/workflows/cleanup_cache.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cleanup_cache.yml b/.github/workflows/cleanup_cache.yml index 99c45c6beed378..b37aee3f849a9e 100644 --- a/.github/workflows/cleanup_cache.yml +++ b/.github/workflows/cleanup_cache.yml @@ -42,7 +42,7 @@ jobs: ## Setting this to not fail the workflow while deleting cache keys. set +e echo "Deleting caches..." - for cacheKey in ${cacheKeysForPR[@]::${#cacheKeysForPR[@]}-1} + for cacheKey in ${cacheKeysForPR[@]:1} do # gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm echo "${cacheKey}"