summaryrefslogtreecommitdiff
path: root/scripts/gh-list.py
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2019-01-14 08:16:09 +0100
committerAleks Kissinger <aleks0@gmail.com>2019-01-14 08:16:09 +0100
commit515cef87a1b676ad09b1fc2243815ffe3310b221 (patch)
tree8872c7b4d0a9a977d2b53949013cde2c2ef461c5 /scripts/gh-list.py
parent0efa4c0d62e07c0864ab1d88fbc545f769698044 (diff)
fixed curl invokation in github scripts
Diffstat (limited to 'scripts/gh-list.py')
-rw-r--r--scripts/gh-list.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/gh-list.py b/scripts/gh-list.py
index 1966db4..f8b1c91 100644
--- a/scripts/gh-list.py
+++ b/scripts/gh-list.py
@@ -1,10 +1,11 @@
+#!/usr/bin/env python
+
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]
+draft = [r for r in gh('releases') if r['draft']][0]
for a in draft['assets']:
print(a['browser_download_url'] +