Skip to content

Commit

Permalink
exclude empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Sep 14, 2023
1 parent 00bd66e commit 3b403a3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/cleanup_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ jobs:
echo "${cacheKeysForPRSliced[@]}"
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in ${cacheKeysForPRSliced[@]}
do
# gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
echo "${cacheKey}"
done
if "${#ArrayName[@]}" -gt "0"; then
echo "Deleting caches..."
for cacheKey in ${cacheKeysForPRSliced[@]}
do
# gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
echo "${cacheKey}"
done
fi
done
echo "Done"
Expand Down

0 comments on commit 3b403a3

Please sign in to comment.