lilac/repo/nebula-bgme/lilac.py
2023-08-23 17:52:31 +08:00

19 lines
351 B
Python

#!/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)