Skip to content

Commit

Permalink
Set latest version in consolidated versions
Browse files Browse the repository at this point in the history
Signed-off-by: Dhi Aurrahman <[email protected]>
  • Loading branch information
dio committed Nov 21, 2024
1 parent e08c3de commit 540a22b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/consolidate_release_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,6 @@ for ((page = 1; page <= lastReleasePage; page++)); do
done

# reorder top-level keys so that versions appear before sha256sums
echo "${releaseVersions}" | jq '{latestVersion: .latestVersion, versions: .versions, sha256sums: .sha256sums}'
echo "${releaseVersions}" |\
jq '. | .latestVersion = ( .versions | keys | sort | .[-1] )' |\
jq '{latestVersion: .latestVersion, versions: .versions, sha256sums: .sha256sums}'

0 comments on commit 540a22b

Please sign in to comment.