mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
ci: Rm merge queue cache in cache-cleanup.yml
(#1129)
since they cannot be reused Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3cf2528273
commit
cc87fe062d
2 changed files with 13 additions and 3 deletions
|
@ -7,14 +7,12 @@ BRANCH="${BRANCH?}"
|
|||
|
||||
while true; do
|
||||
echo "Fetching list of cache key for $BRANCH"
|
||||
cacheKeysForPR="$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1 )"
|
||||
cacheKeysForPR="$(gh actions-cache list -R "$REPO" -B "$BRANCH" -L 100 | cut -f 1)"
|
||||
|
||||
if [ -z "$cacheKeysForPR" ]; then
|
||||
break
|
||||
fi
|
||||
|
||||
## Setting this to not fail the workflow while deleting cache keys.
|
||||
set +e
|
||||
echo "Deleting caches..."
|
||||
for cacheKey in $cacheKeysForPR
|
||||
do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue