From 6063c58d0389623e1ea4a7f9eac16d3e681cc0ac Mon Sep 17 00:00:00 2001 From: Alan Forbes Date: Wed, 27 Nov 2024 10:26:36 +0000 Subject: [PATCH] Remove echo from deletion for "live" --- .github/workflows/cache_clean.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cache_clean.yml b/.github/workflows/cache_clean.yml index adae10d44..bee1798c4 100644 --- a/.github/workflows/cache_clean.yml +++ b/.github/workflows/cache_clean.yml @@ -53,8 +53,7 @@ jobs: DELETE_LIST=$(for CACHE_PREFIX in $CACHE_PREFIX_LIST ; do grep -E -o "^${CACHE_PREFIX}[^[:space:]]+" CACHE_LIST | sed '1d' ; done) echo DELETIONS ... # Delete caches via keys in DELETE_LIST if not dryrun - # TODO remove non-dryrun echo for live use - for KEY in $DELETE_LIST ; do [ "${{ inputs.dryrun }}" = "true" ] && echo \[DRY RUN\] DELETING $KEY || echo gh actions-cache delete $GH_DELETE_ARGS $KEY ; done + for KEY in $DELETE_LIST ; do [ "${{ inputs.dryrun }}" = "true" ] && echo \[DRY RUN\] DELETING $KEY || gh actions-cache delete $GH_DELETE_ARGS $KEY ; done # Generate post-clean list echo CACHE LIST AFTER ... gh actions-cache list $GH_LIST_ARGS