We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7cf60 commit bf23379Copy full SHA for bf23379
.github/workflows/cache.yaml
@@ -30,14 +30,14 @@ jobs:
30
/repos/${{ github.repository }}/actions/caches?sort=$sort)
31
32
res_count=$(echo "$res" | jq '.actions_caches | length')
33
- if [[ "$res_count" -eq 0 ]]; then break; fi
+ if [[ "$res_count" -eq 0 ]]; then exit; fi
34
35
targets=$(echo "$res" | jq \
36
--arg ref "$ref" \
37
'.actions_caches[] | select(.ref == $ref)
38
| del(.created_at, .size_in_bytes, .version)')
39
targets_count=$(echo "$targets" | jq -s 'length')
40
- if [[ "$targets_count" -eq 0 ]]; then break; fi
+ if [[ "$targets_count" -eq 0 ]]; then exit; fi
41
echo "Found $targets_count caches"
42
echo "$targets"
43
0 commit comments