FIXUP: Minor caching improvement

This commit is contained in:
Alex Pyrgiotis 2024-09-18 18:11:17 +03:00
parent e0878e489a
commit f6f9ff16e1
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -72,7 +72,7 @@ jobs:
name: Download and cache Tesseract data name: Download and cache Tesseract data
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Cache Tessdata - name: Cache Tessdata
id: cache-tessdata id: cache-tessdata
uses: actions/cache@v4 uses: actions/cache@v4
@ -84,8 +84,12 @@ jobs:
with: with:
python-version: '3.11' python-version: '3.11'
- name: Download Tessdata - name: Download Tessdata
if: steps.cache-tessdata.outputs.cache-hit != 'true' run: |-
run: python3 ./install/common/download-tessdata.py if [ -f "share/tessdata" ]; then
echo "Already cached, skipping"
else
python3 ./install/common/download-tessdata.py
fi
windows: windows:
runs-on: windows-latest runs-on: windows-latest