8000 Sort versions by their semantic version number (#14) · github/gh-codeql@971b0a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 971b0a9

Browse files
Sort versions by their semantic version number (#14)
1 parent 32f5b5a commit 971b0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh-codeql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fi
9595
function download() {
9696
local version="$1"
9797
if [ -z "$version" ] || [ "$version" = "latest" ]; then
98-
version=$(gh api "repos/$repo/releases/latest" --jq '.tag_name')
98+
version=$(gh api "repos/$repo/releases" --paginate --jq '.[].tag_name' | sort -V | tail -1)
9999
fi
100100
if [ -x "$rootdir/dist/$channel/$version/codeql" ] ; then
101101
# Already downloaded.

0 commit comments

Comments
 (0)
0