How to run pipeline in the latest” release/* ” branch?

Hello,

We use release branches to deploy to production environments. I want to automate the release of our latest release branch using scheduling. Is there a way to filter the branches and allways run the pipeline on the latest release branch? is there another better strategy that can be used to have release branches and deploy them in production?

Regards

Hi @pdaniel

Since you need to schedule it and not run immediately after the release branch is created/changed, I guess you can schedule a pipeline that would have some smart way to figure out the latest release branch in the repository and then use GitLab API to trigger pipeline for that particular branch.