diff options
Diffstat (limited to 'scripts/gh-list.py')
-rw-r--r-- | scripts/gh-list.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/gh-list.py b/scripts/gh-list.py new file mode 100644 index 0000000..1966db4 --- /dev/null +++ b/scripts/gh-list.py @@ -0,0 +1,11 @@ +from gh import gh, pr +import os + +tok = os.getenv('GITHUB_TOKEN') + +draft = [r for r in gh('releases') + if r['draft'] and r['name'] == 'AUTO'][0] + +for a in draft['assets']: + print(a['browser_download_url'] + + '?access_token=' + tok) |