mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
better job handling
This commit is contained in:
@@ -174,8 +174,6 @@ jobs:
|
||||
yarn build
|
||||
cd ..
|
||||
- name: Build packages
|
||||
env:
|
||||
IS_RELEASE: yes
|
||||
run: |
|
||||
sudo apt-get install librrd-dev rrdtool libssl-dev
|
||||
python -m pip install --upgrade pip build
|
||||
|
||||
+2
-2
@@ -8,8 +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)
|
||||
is_release = os.environ.get('IS_RELEASE', None)
|
||||
if is_release is not None and github_version is not None:
|
||||
github_type = os.environ.get('GITHUB_REF_TYPE', None)
|
||||
if github_version is not None and github_type == "tag":
|
||||
print(f"GITHUB_REF_NAME found, using version: {github_version}")
|
||||
return github_version
|
||||
return default_version(local_scheme=local_scheme)
|
||||
|
||||
Reference in New Issue
Block a user