Skip to content

Commit bf23379

Browse files
authored
Fix cache action [ci] (#267)
1 parent 3d7cf60 commit bf23379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cache.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
/repos/${{ github.repository }}/actions/caches?sort=$sort)
3131
3232
res_count=$(echo "$res" | jq '.actions_caches | length')
33-
if [[ "$res_count" -eq 0 ]]; then break; fi
33+
if [[ "$res_count" -eq 0 ]]; then exit; fi
3434
3535
targets=$(echo "$res" | jq \
3636
--arg ref "$ref" \
3737
'.actions_caches[] | select(.ref == $ref)
3838
| del(.created_at, .size_in_bytes, .version)')
3939
targets_count=$(echo "$targets" | jq -s 'length')
40-
if [[ "$targets_count" -eq 0 ]]; then break; fi
40+
if [[ "$targets_count" -eq 0 ]]; then exit; fi
4141
echo "Found $targets_count caches"
4242
echo "$targets"
4343

0 commit comments

Comments
 (0)