From 44b1acc52c57b2d0a640362af96e4320a2af55d2 Mon Sep 17 00:00:00 2001 From: master3395 Date: Sun, 15 Feb 2026 20:06:33 +0100 Subject: [PATCH] =?UTF-8?q?CI:=20fix=20'Unrecognized=20function:=20hashFil?= =?UTF-8?q?es'=20=E2=80=94=20use=20in-step=20skip=20instead=20of=20job=20i?= =?UTF-8?q?f?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b5c752ca..89b392867 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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()