Commit 0ea77028 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: don't test job prefix rule on "pages" job (special)

parent 2c83ed65
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -444,7 +444,7 @@ def _check_job(job_name: str, tpl_body, job_prefix) -> int:
    err_count = 0

    # check non-hiden jobs rules
    if not job_name.startswith("."):
    if not job_name.startswith(".") and job_name != "pages":
        # check: all jobs are prefixed with the template prefix
        if not job_name.startswith(job_prefix) or (
            len(job_name) > len(job_prefix) and job_name[len(job_prefix)] != "-"