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.
More on GitLab CI
How does GitLab CI/CD work at a high level?BeginnerWhat is a GitLab Runner and what executors exist?IntermediateWhat are the types of runners (shared, group, project) and tags?IntermediateHow do `rules:` work and how do they replace `only/except`?IntermediateWhat are workflow rules and how do they prevent duplicate pipelines?AdvancedHow do artifacts and cache differ in GitLab CI?Intermediate