Hability to merge, commit and push

Hello,
In our gitflow organization, like this:

  • main
  • release/x.y.z
  • hotfix/x.y.z
  • develop
    I need that once the release/x.y.z or the hotfix/x.y.z is merge on main, the cli pull develop, merge main in develop and push develop on bitbucket.
    Does circuleCI manage this functionality or does an orbs allow me to do so? How do I proceed?