summaryrefslogtreecommitdiff
path: root/scripts/gh-list.py
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2019-01-13 18:13:29 +0100
committerAleks Kissinger <aleks0@gmail.com>2019-01-13 18:13:29 +0100
commitcfd6ae88b194d69d2a2c365d4a8a78644ba9079b (patch)
tree55fb550e78ee4da583a484f1129e798cce88e0dd /scripts/gh-list.py
parentd49cde5d0b948f24aa7b3bd9ad9b3b63333f2281 (diff)
added github AUTO deploy scripts
Diffstat (limited to 'scripts/gh-list.py')
-rw-r--r--scripts/gh-list.py11
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)