From 69826bd442fd29f2ef6fc40853a594b8102f42be Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 10 Feb 2021 15:48:51 -0300 Subject: [PATCH] chore(ci): debug deploy Signed-off-by: Carlos Alexandro Becker --- scripts/get-releases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get-releases.sh b/scripts/get-releases.sh index eeb4d8608..000ccca63 100755 --- a/scripts/get-releases.sh +++ b/scripts/get-releases.sh @@ -4,7 +4,7 @@ set -xeuo pipefail url="https://api.github.com/repos/goreleaser/goreleaser/releases" get_last_page() { - curl -sf -I -H "Authorization: Bearer $GITHUB_TOKEN" \ + curl -sSf -I -H "Authorization: Bearer $GITHUB_TOKEN" \ "$url" | grep -E '^Link: ' | sed -e 's/^Link:.*page=//g' -e 's/>.*$//g' @@ -15,7 +15,7 @@ tmp="$(mktemp -d)" for i in $(seq 1 "$last_page"); do echo "page: $i" - curl -H "Authorization: Bearer $GITHUB_TOKEN" -sf "$url?page=$i" >"$tmp/$i.json" + curl -H "Authorization: Bearer $GITHUB_TOKEN" -sSf "$url?page=$i" >"$tmp/$i.json" done jq '[inputs] | add' "$tmp"/*.json >www/docs/static/releases.json