You need multi-project pipelines: when the API repo changes, trigger the frontend pipeline.

IntermediateScenarioGitLab CI
Answer

Situation read → Cross-repo orchestration.

What I'd do →

trigger_frontend:
  stage: deploy
  trigger:
    project: group/frontend
    branch: main
    strategy: depend

strategy: depend makes the upstream job wait for the downstream result.

Why → Upstream status reflects the downstream outcome, giving one place to look.

Interview tip → Contrast parent-child pipelines (same project) with multi-project pipelines.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitLab CI