Skip to content

Commit

Permalink
Pin the new release checker to v3 for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat committed Jul 1, 2024
1 parent 05cdf3c commit 513c33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version_ge() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1" || tes

# GitHub get latest release tag
# See: https://www.shivering-isles.com/helpful-shell-snippets-for-docker-testing-and-bootstrapping/
github_latest_release() { wget -qO- "https://api.github.com/repos/$1/releases/latest" | jq .tag_name | sed -e 's/"//g'; }
github_latest_release() { wget -qO- "https://api.github.com/repos/$1/releases" | jq --raw-output 'map(select((.draft | not) and (.tag_name | startswith("v3.")))) | first .tag_name | .[1:]'; }

command_exists wget
command_exists jq
Expand Down

0 comments on commit 513c33b

Please sign in to comment.