aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2021-12-28 22:21:42 +0100
committerAlystrasz <contact@remyraes.com>2021-12-28 22:21:42 +0100
commitb967b24e550e2e3576ddbe20de315eec3e7209cf (patch)
treeee05812fe15c070f8f509445dd94da61672e0435 /src/utils.js
parentfccb5815decce6257b8f04cb842a40d6d02110e7 (diff)
downloadViper-b967b24e550e2e3576ddbe20de315eec3e7209cf.tar.gz
Viper-b967b24e550e2e3576ddbe20de315eec3e7209cf.zip
[feat] extracting latest northstar release version tag
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.js b/src/utils.js
index 85ce5ce..376c03c 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -61,6 +61,9 @@ function update() {
headers: {"User-Agent": "Viper"},
url: "https://api.github.com/repos/R2Northstar/Northstar/releases/latest",
}, (error, response, body) => {
+ const tag = body['tag_name'];
+ console.log(tag);
+
https.get(body.assets[0].browser_download_url, (res) => {
let stream = fs.createWriteStream(settings.zip);
res.pipe(stream);