CI: fix 'Unrecognized function: hashFiles' — use in-step skip instead of job if

GitHub reported: Unrecognized function: 'hashFiles' at ci.yml L40.
Remove job-level if: hashFiles(...); skip inside the run step when
plogical/versionFetcher.py is missing (e.g. stable branch).
This commit is contained in:
master3395
2026-02-15 20:06:33 +01:00
parent cdce54f61f
commit 44b1acc52c

View File

@@ -37,7 +37,6 @@ jobs:
validate-python:
name: Validate Python (version fetcher)
runs-on: ubuntu-22.04
if: hashFiles('plogical/versionFetcher.py') != ''
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
@@ -48,6 +47,10 @@ jobs:
run: pip install requests
- name: Run version fetcher (phpMyAdmin / SnappyMail)
run: |
if [ ! -f plogical/versionFetcher.py ]; then
echo "Skipping (plogical/versionFetcher.py not present on this branch)"
exit 0
fi
PYTHONPATH=. python3 -c "
from plogical.versionFetcher import get_latest_phpmyadmin_version, get_latest_snappymail_version
pma = get_latest_phpmyadmin_version()