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 df22576 commit f74b297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cleanup_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
cacheKeysForPR=( $(gh actions-cache list -R $REPO -B $BRANCH -L 100 --key $cache_key --sort created-at --order desc | cut -f 1) )
echo "${cacheKeysForPR[@]}"
cacheKeysForPRSliced=("${cacheKeysForPR[@]:1}")
echo "${cacheKeysForPRSliced[@]}"
## echo "${cacheKeysForPRSliced[@]}"
## Setting this to not fail the workflow while deleting cache keys.
set +e
if [[ ${#ArrayName[@]} -gt 0 ]]
if [[ ${#cacheKeysForPRSliced[@]} -gt 0 ]]
then
echo "Deleting caches..."
for cacheKey in ${cacheKeysForPRSliced[@]}
Expand Down

0 comments on commit f74b297

Please sign in to comment.