Fix: apt-get entfernt, nutze vorinstalliertes Python/Git auf dem Runner

This commit is contained in:
2026-02-20 17:20:43 +01:00
parent 4418b9e35e
commit bd2d7b7728

View File

@@ -11,10 +11,22 @@ jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Install system dependencies
- name: Check environment
run: |
echo "=== System Info ==="
uname -a
echo "=== Python ==="
python3 --version
echo "=== Pip ==="
pip3 --version || pip --version || echo "pip nicht gefunden"
echo "=== Git ==="
git --version
echo "=== Welche Shell ==="
echo $SHELL
which python3 pip3 git
- name: Configure Git
run: |
apt-get update
apt-get install -y python3 python3-pip git
git config --global user.name 'LawGit Bot'
git config --global user.email 'bot@git.coded.law'
git config --global init.defaultBranch main
@@ -27,7 +39,10 @@ jobs:
- name: Install Python dependencies
run: |
pip install --break-system-packages -r requirements.txt
pip3 install --break-system-packages -r requirements.txt || \
pip install --break-system-packages -r requirements.txt || \
pip3 install -r requirements.txt || \
pip install -r requirements.txt
- name: Run update script
run: |
@@ -64,5 +79,5 @@ jobs:
run: |
echo "## Update-Zusammenfassung"
echo "- Workflow ausgeführt: $(date)"
echo "- Python: $(python3 --version)"
echo "- Git: $(git --version)"
echo "- Python: $(python3 --version 2>&1)"
echo "- Git: $(git --version 2>&1)"