We have a branch pipeline that creates a new git tag. If multiple PRs get merged at around the same time, this branch pipeline is started multiple times. Now there could be race conditions, where the pipelines are failing, because the previous ones have not finished pushing the new tag.
Is there a way to let a branch pipeline wait until the previous one has finished?