From a6e0a7f8a152bb8a7e792c4d09993568ec7ff60a Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 14 Jul 2021 14:54:33 -0300 Subject: [PATCH] feat: smaller releases.json (#2343) Signed-off-by: Carlos Alexandro Becker --- scripts/get-releases.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/get-releases.sh b/scripts/get-releases.sh index c4d54fad1..fc6926fab 100755 --- a/scripts/get-releases.sh +++ b/scripts/get-releases.sh @@ -21,10 +21,11 @@ generate() { done if test "$last_page" -eq "1"; then - cp -f "$tmp/1.json" "$file" + jq --compact-output 'map({tag_name: .tag_name})' "$tmp"/1.json >"$file" else - jq '[inputs] | add' "$tmp"/*.json >"$file" + jq --compact-output '[inputs] | add | map({tag_name: .tag_name})' "$tmp"/*.json >"$file" fi + du -hs "$file" } generate "https://api.github.com/repos/goreleaser/goreleaser/releases" "www/docs/static/releases.json"