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

View file

@ -13,11 +13,8 @@ jobs:
steps:
- name: Checkout code
run: |
git clone https://git.raines.xyz/robojerk/deb-mock.git /tmp/deb-mock
# Copy all files including hidden ones
cp -r /tmp/deb-mock/* .
cp -r /tmp/deb-mock/.gitignore . 2>/dev/null || true
cp -r /tmp/deb-mock/.forgejo . 2>/dev/null || true
# Clone directly to current directory
git clone https://git.raines.xyz/robojerk/deb-mock.git .
# Verify all files are copied
echo "Checking repository contents:"
ls -la