mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 01:23: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: |
|
run: |
|
||||||
echo "Fetching list of cache keys"
|
echo "Fetching list of cache keys"
|
||||||
cacheKeysForPR=$(gh cache list --ref $BRANCH --limit 100 --json id --jq '.[].id')
|
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..."
|
echo "Deleting caches..."
|
||||||
for cacheKey in $cacheKeysForPR
|
for cacheKey in $cacheKeysForPR
|
||||||
do
|
do
|
||||||
gh cache delete $cacheKey
|
gh cache delete $cacheKey || true
|
||||||
done
|
done
|
||||||
echo "Done"
|
echo "Done"
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue