I want to start a job (with the runner in Gitlab) if I tag a branch with "Local" or "Online". When I tag a branch with "Local" the job doesn't know with which branch he has to do the job.
I want to push the branch with the last Tag "Local" on a testserver and the branch with the last "Online"-Tag on a Onlineserver.
The answer below is not enough because I get all branches which have the Tag on it. But I only want to know the last branch with this Tag