Created
July 14, 2019 20:59
-
-
Save henchc/935d8c989309dce743eb27e378c5b5f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url_helm_chart = 'https://raw.githubusercontent.com/jupyterhub/helm-chart/gh-pages/index.yaml' | |
helm_chart_yaml = load(requests.get(url_helm_chart).text) | |
# sort by date created | |
updates_sorted = sorted(helm_chart_yaml['entries']['binderhub'], key=lambda k: k['created']) | |
bh_master = updates_sorted[-1]['version'].split('-')[-1] | |
print(bh_master) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment