diff --git a/.gitea/workflows/update-laws.yaml b/.gitea/workflows/update-laws.yaml index a5a938af..de315dd4 100644 --- a/.gitea/workflows/update-laws.yaml +++ b/.gitea/workflows/update-laws.yaml @@ -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)"