diff --git a/.github/workflows/cleanup-cache.yml b/.github/workflows/cleanup-cache.yml index 01d1036a..779648ed 100644 --- a/.github/workflows/cleanup-cache.yml +++ b/.github/workflows/cleanup-cache.yml @@ -10,10 +10,10 @@ jobs: cleanup: runs-on: ubuntu-latest steps: - - run: gh extension install actions/gh-actions-cache - - name: Cleanup run: | + gh extension install actions/gh-actions-cache + cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1) # Turn off errexit to not fail the workflow while deleting cache keys.