mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-16 11:36:48 +01:00
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:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user