mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
ci: detect latest version with "Kubernetes" prefix
New Kubernetes versions are now prefixed with "Kubernetes", like: $ ./scripts/get_patch_release.py Kubernetes v1.18.13 Kubernetes v1.17.15 Kubernetes v1.19.5 Kubernetes v1.20.0 Kubernetes v1.20.0-rc.0 v1.20.0-beta.2 v1.18.12 v1.19.4 v1.17.14 v1.20.0-beta.1 v1.20.0-beta.0 v1.20.0-alpha.3 v1.18.10 v1.17.13 The new "Kubernetes" prefix prevents the current logic to not match the version. By splitting the returned version string on words, and returning the last component in get_releases(), the script works as intended again. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
5562a6ded9
commit
d610c51007
@ -77,7 +77,7 @@ def get_releases(gh_releases):
|
||||
'''
|
||||
releases = list()
|
||||
for release in gh_releases:
|
||||
releases.append(release['name'])
|
||||
releases.append(release['name'].split()[-1])
|
||||
return releases
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user