Skip to content

Commit f9feb6e

Browse files
committed
calculate-cache.sh: use --jq instead of | jq
Signed-off-by: Norio Nomura <[email protected]>
1 parent ffe05e0 commit f9feb6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/calculate-cache.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ function size_to_mib() {
211211
# "setup-go-macOS-go-1.23.0-6bce2eefc6111ace836de8bb322432c072805737d5f3c5a3d47d2207a05f50df": 982139209
212212
# }
213213
actual_cache_sizes=$(
214-
gh cache list --json key,createdAt,sizeInBytes |
215-
jq 'sort_by(.createdAt)|reverse|unique_by(.key)|sort_by(.key)|map({"key":.key,"value":.sizeInBytes})|from_entries'
214+
gh cache list --json key,createdAt,sizeInBytes \
215+
--jq 'sort_by(.createdAt)|reverse|unique_by(.key)|sort_by(.key)|map({"key":.key,"value":.sizeInBytes})|from_entries'
216216
)
217217

218218
workflows=(

0 commit comments

Comments
 (0)