The `env` context is not available in a job-level `if:` (only `github`/`needs`/ `vars`/`inputs` are), so `if: ... && env.PACT_BROKER != ''` on the job was an invalid-context error that failed the whole workflow to parse. Move the broker guard onto each step (matching the consumer/provider jobs) and keep the job `if` on the master-branch check only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>