Skip to content

Commit

Permalink
Fix retrieval of latest release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dhiller committed Aug 14, 2019
1 parent c78e85b commit 429d12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create-latest-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

KUBEVIRT_VERSION=$(curl --fail -s 'https://api.github.com/repos/kubevirt/kubevirt/releases'|grep tag_name|head -1 | awk -F':' '{print $2}' | sed 's/,//' | xargs)
KUBEVIRT_VERSION=$(curl --fail -s https://api.github.com/repos/kubevirt/kubevirt/releases | jq -r '.[].tag_name' | sort -rV | head -1 | xargs)

[ -z "$KUBEVIRT_VERSION" ] && (echo "Failed to retrieve latest KubeVirt version!" ; exit 1)

Expand Down

0 comments on commit 429d12c

Please sign in to comment.