we are using .gitlab-ci.yml file in our projects. We want to use API to trigger pipelines. But before that we want to properly understand which component actually triggers the pipeline.
Is it gitlab ci server who triggers the pipeline & that triggering depends on .gitlab-ci.yml file OR the runner keep an eye on the project repo and whenever there is a change the Runner automatically triggers the pipeline & pulls the .gitlab-ci.yml file ?
Please provide some insights.