From e3365ff0c49a2b47e23369a59a9adb5a17af8b83 Mon Sep 17 00:00:00 2001 From: Connor Date: Thu, 6 Jun 2024 16:30:56 -0400 Subject: [PATCH] lint corrections --- .github/workflows/action-cache-cleanup.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/action-cache-cleanup.yml b/.github/workflows/action-cache-cleanup.yml index 05e14bc0f7..65ab17f004 100644 --- a/.github/workflows/action-cache-cleanup.yml +++ b/.github/workflows/action-cache-cleanup.yml @@ -12,14 +12,16 @@ jobs: - name: Cleanup run: | gh extension install actions/gh-actions-cache - echo ""Fetching list of cache key"" - cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 ) + echo "Fetching list of cache key" + + cacheKeysForPR=$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1 ) + ## Setting this to not fail the workflow while deleting cache keys. set +e echo "Deleting caches..." for cacheKey in $cacheKeysForPR do - gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm + gh actions-cache delete $cacheKey -R "$REPO" -B "$BRANCH" --confirm done echo "Done" env: