I have the following scenario:
Whenever file A changes in branch 'develop', I want to copy these changes to branch 'main'.
I added a step to my pipeline which triggers whenever file A changes in branch 'develop', but apparently Bitbucket only clones the triggering branch, so 'main' is not available in the pipeline.
I have tried to fetch, pull, checkout -b, etc. but to no avail. I also tried re-cloning the whole repository, but have run into permission issues.
How can I go about this?