File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 echo "Clearing pixi-lock-* cache entries"
2727 gh cache list --repo ${{ github.repository }} --json key --jq '.[].key' | grep '^pixi-lock_' | while read -r key; do
2828 echo "Deleting cache: $key"
29- gh cache delete "$key" --repo ${{ github.repository }}
29+ for attempt in 1 2 3; do
30+ if gh cache delete "$key" --repo ${{ github.repository }}; then
31+ break
32+ fi
33+ echo "Attempt $attempt failed, retrying in 5 seconds..."
34+ sleep 5
35+ done
3036 done
37+ echo "Verifying all caches are cleared..."
38+ remaining=$(gh cache list --repo ${{ github.repository }} --json key --jq '.[].key' | grep '^pixi-lock_' || true)
39+ if [ -n "$remaining" ]; then
40+ echo "Error: Some caches still exist:"
41+ echo "$remaining"
42+ exit 1
43+ fi
3144 echo "Cache cleared"
3245
3346 cache-pixi-lock :
You can’t perform that action at this time.
0 commit comments