mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
Update .github/workflows/delete-merged-caches.yml
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
This commit is contained in:
parent
0aa0812f0e
commit
33e5cd0fa9
1 changed files with 1 additions and 4 deletions
5
.github/workflows/delete-merged-caches.yml
vendored
5
.github/workflows/delete-merged-caches.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue