Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Sep 14, 2023
1 parent 2704bf8 commit 92a4a12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cleanup_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ jobs:
echo "Fetching list of cache key for ${BRANCH}"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
echo "${cacheKeysForPR[*]}"
cacheKeysForPRSliced = ("${cacheKeysForPR[@]:1}")
echo "${cacheKeysForPRSliced[*]}"
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in ${cacheKeysForPR[@]:1}
for cacheKey in cacheKeysForPRSliced
do
# gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
echo "${cacheKey}"
Expand Down

0 comments on commit 92a4a12

Please sign in to comment.