diff --git a/.gitea/workflows/update-laws.yaml b/.gitea/workflows/update-laws.yaml index cdbea209..227b1111 100644 --- a/.gitea/workflows/update-laws.yaml +++ b/.gitea/workflows/update-laws.yaml @@ -25,12 +25,16 @@ jobs: - name: Set up Python run: | python3 --version - python3 -m pip install --upgrade pip + # Install pip if not available + if ! command -v pip3 &> /dev/null; then + sudo apt-get update && sudo apt-get install -y python3-pip + fi + python3 -m pip install --upgrade pip || pip3 install --upgrade pip - name: Install dependencies run: | - pip install --upgrade pip - pip install -r requirements.txt + pip3 install --upgrade pip + pip3 install -r requirements.txt - name: Run update script run: |