update nebula-bgme lilac
This commit is contained in:
parent
27cb986e8e
commit
612c1a390e
3 changed files with 19 additions and 8 deletions
18
repo/nebula-bgme/lilac.py
Normal file
18
repo/nebula-bgme/lilac.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from lilaclib import *
|
||||
|
||||
|
||||
def get_latest_release_tag():
|
||||
resp = s.get(
|
||||
'https://api.github.com/repos/slackhq/nebula/releases/latest'
|
||||
)
|
||||
body = resp.json()
|
||||
return body["tag_name"]
|
||||
|
||||
|
||||
def pre_build():
|
||||
tag = get_latest_release_tag()
|
||||
pkgver = tag.lstrip('v')
|
||||
|
||||
update_pkgver_and_pkgrel(pkgver, True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue