Skip to content

Commit

Permalink
Trying to fix install_and_update ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
BGR360 committed Oct 22, 2019
1 parent 92d5504 commit b81df4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/ci/install_second_latest_and_update.py
Expand Up @@ -17,11 +17,14 @@
if len(sys.argv) > 2:
EXPECTED_VERSION = sys.argv[2]

print('GITHUB_REPO = {}'.format(GITHUB_REPO))
print('EXPECTED_VERSION = {}'.format(EXPECTED_VERSION))

# Fetch second-to-latest version string from GitHub API
api_url = 'https://api.github.com/repos/{}/releases'.format(GITHUB_REPO)
releases = requests.get(api_url).json()
api_req = requests.get(api_url)
releases = api_req.json()
print('Num releases: {}'.format(len(releases)))
previous_version = releases[1]['tag_name']

# Install previous version
Expand Down

0 comments on commit b81df4c

Please sign in to comment.