Fix: apt-get entfernt, nutze vorinstalliertes Python/Git auf dem Runner
This commit is contained in:
@@ -11,10 +11,22 @@ jobs:
|
|||||||
update:
|
update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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: |
|
run: |
|
||||||
apt-get update
|
|
||||||
apt-get install -y python3 python3-pip git
|
|
||||||
git config --global user.name 'LawGit Bot'
|
git config --global user.name 'LawGit Bot'
|
||||||
git config --global user.email 'bot@git.coded.law'
|
git config --global user.email 'bot@git.coded.law'
|
||||||
git config --global init.defaultBranch main
|
git config --global init.defaultBranch main
|
||||||
@@ -27,7 +39,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
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
|
- name: Run update script
|
||||||
run: |
|
run: |
|
||||||
@@ -64,5 +79,5 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "## Update-Zusammenfassung"
|
echo "## Update-Zusammenfassung"
|
||||||
echo "- Workflow ausgeführt: $(date)"
|
echo "- Workflow ausgeführt: $(date)"
|
||||||
echo "- Python: $(python3 --version)"
|
echo "- Python: $(python3 --version 2>&1)"
|
||||||
echo "- Git: $(git --version)"
|
echo "- Git: $(git --version 2>&1)"
|
||||||
|
|||||||
Reference in New Issue
Block a user