1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-28 04:13:20 +01:00

Fixed: pip not found error in GitHub Actions indexer-sync workflow

- Use python -m ensurepip to ensure pip is installed in cached venv
- Use python -m pip instead of pip directly to avoid path issues
- Activate virtual environment in sync step for consistency
- Fixes broken symlinks when .venv is restored from cache
This commit is contained in:
ServarrAdmin
2025-10-18 11:19:33 -05:00
parent ba5e45282d
commit 68883acdc5

View File

@@ -81,7 +81,10 @@ jobs:
fi
# shellcheck disable=SC1091
source .venv/bin/activate
pip install -r requirements.txt
# Ensure pip is installed and upgraded
python -m ensurepip --upgrade || true
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Configure git
run: |
@@ -107,6 +110,12 @@ jobs:
- name: Run indexer sync
run: |
# Activate virtual environment if it exists
if [ -d ".venv" ]; then
# shellcheck disable=SC1091
source .venv/bin/activate
fi
# Run the sync script with -z mode, automation mode, and push enabled
TARGET_BRANCH="${{ github.event.inputs.target_branch || 'automated-indexer-sync' }}"
MODE="${{ github.event.inputs.mode || 'normal' }}"