Commit 4b062a6a authored by Aleks Kissinger's avatar Aleks Kissinger


parent 099d86e6
#!/usr/bin/env python
from gh import gh, pr
import sys, os
filter = None
if len(sys.argv) == 2:
filter = sys.argv[1]
tok = os.getenv('GITHUB_TOKEN')
draft = [r for r in gh('releases') if r['draft']][0]
for a in draft['assets']:
if filter == None or filter in a['name']:
print('Downloading ' + a['name'])
b = gh('releases/assets/%s' % a['id'],
['-L', '-H', 'Accept: application/octet-stream'],
parse=False, quiet=False)
f = open(a['name'], 'w')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment