Ci Trigger for One specific Tags in Multiple Repositories

Hello Everybody,

We’re currently on the beginning of a project where we’re discussing about the git workflow and branching and everything and that include CI/CD consideration.

We’re wondering if that would be possible to have like 2 repositories where we will put some tags when a version is ready like 1.0.1. What we want to do is to have the same versions number from both side so

If the version number goes from 1.0.0 to 1.0.1 in repository A then the CI can trigger but if the version number goes from 1.0.0 to 1.1.0 in repository A then the same tags or at least beginning of tags should exist in repository B.

For instance :

A & B are at 1.0.0
A goes to 1.0.1 → A is deployed
B goes to 1.0.1 → B is deployed
A goes to 1.1.0 → A is not deployed as B is not currently at 1.1.X
B goes to 1.0.2 → B is deployed
A goes to 1.1.1 → A is not deployed
B goes to 1.1.0 → A is deployed at 1.1.1 & B at 1.1.0

Do you think that could be possible to achieve this using gitlab ci ?
If yes, do you any clues of how that can lead us to achieve it.

Best regards,

Grégory Lecomte