[mac OS] Set flags for curl invocations (#8008)

This commit is contained in:
Vasilii Polikarpov
2023-08-01 15:42:44 +02:00
committed by GitHub
parent 67f9c37eee
commit 463cbf01cf
14 changed files with 18 additions and 18 deletions

View File

@@ -202,7 +202,7 @@ get_github_package_download_url() {
[ -n "$API_PAT" ] && authString=(-H "Authorization: token ${API_PAT}")
json=$(curl "${authString[@]}" -sSf "https://api.github.com/repos/${REPO_ORG}/releases?per_page=${SEARCH_IN_COUNT}")
json=$(curl "${authString[@]}" -fsSL "https://api.github.com/repos/${REPO_ORG}/releases?per_page=${SEARCH_IN_COUNT}")
if [[ "$VERSION" == "latest" ]]; then
tagName=$(echo $json | jq -r '.[] | select((.prerelease==false) and (.assets | length > 0)).tag_name' | sort --unique --version-sort | egrep -v ".*-[a-z]" | tail -1)