test: skip checking camoufox browser version if he cache hits

To avoid GitHub repeated rate-limit errors
This commit is contained in:
Karim shoair
2025-12-18 01:23:50 +02:00
parent ecb97d3fd6
commit 381c4eab7f
+5 -1
View File
@@ -108,7 +108,11 @@ jobs:
- name: Install Camoufox browser
run: |
echo "Cache hit: ${{ steps.camoufox-cache.outputs.cache-hit }}"
python3 -m camoufox fetch --browserforge
if [ "${{ steps.camoufox-cache.outputs.cache-hit }}" != "true" ]; then
python3 -m camoufox fetch --browserforge
else
echo "Skipping fetch - using cached Camoufox browser"
fi
# Cache tox environments
- name: Cache tox environments