mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-16 09:34:03 +01:00
Use github ref name only for release
This commit is contained in:
+2
-1
@@ -8,7 +8,8 @@ def local_scheme(version):
|
||||
def get_version():
|
||||
from setuptools_scm import get_version as default_version
|
||||
github_version = os.environ.get('GITHUB_REF_NAME', None)
|
||||
if github_version is not None:
|
||||
is_release = os.environ.get('IS_RELEASE', None)
|
||||
if is_release is not None and github_version is not None:
|
||||
return github_version
|
||||
return default_version(local_scheme=local_scheme)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user