Update .github/workflows/delete-merged-caches.yml

Co-authored-by: ebbit1q <ebbit1q@gmail.com>
This commit is contained in:
Bruno Alexandre Rosa 2025-12-31 12:17:04 +01:00 committed by GitHub
parent 0aa0812f0e
commit 33e5cd0fa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,13 +16,10 @@ jobs:
run: |
echo "Fetching list of cache keys"
cacheKeysForPR=$(gh cache list --ref $BRANCH --limit 100 --json id --jq '.[].id')
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh cache delete $cacheKey
gh cache delete $cacheKey || true
done
echo "Done"
env: