1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-10-08 23:12:05 +02:00

ci: improve get-releases.sh

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker
2025-08-14 11:26:47 -03:00
parent dec07447ee
commit b36bde7639

View File

@@ -26,14 +26,14 @@ generate() {
done
jq -s 'add' "$tmp"/*.json >"$file"
du -hs "$file"
wc -c "$file"
}
latest() {
local url="$1"
local file="$2"
curl -sfL "$url/latest" | jq -r ".tag_name" >"$file"
du -hs "$file"
wc -c "$file"
}
latest "https://api.github.com/repos/goreleaser/goreleaser/releases" "www/docs/static/latest"