fix CI/CD workflows: direct git clone and version extraction from setup.py
Some checks failed
Build and Publish Debian Package / build-deb (push) Failing after 1m23s
Build Deb-Mock Package / build (push) Successful in 54s
Test Deb-Mock Build / test (push) Failing after 55s

This commit is contained in:
robojerk 2025-08-03 23:54:32 +00:00
parent d6d2d7a890
commit 13c2dbc075
2 changed files with 6 additions and 6 deletions

View file

@ -58,8 +58,11 @@ jobs:
- name: Build Debian package
run: |
# Get version from setup.py instead of importing module
VERSION=$(python3 -c "import re; print(re.search(r'version=[\"\']([^\"\']+)[\"\']', open('setup.py').read()).group(1))")
echo "Building version: $VERSION"
# Update changelog with current version
VERSION=$(python3 -c "import deb_mock; print(deb_mock.__version__)")
dch --newversion "$VERSION-1" --distribution unstable "Build from CI/CD"
# Build the package