update the workflow logic to dynamically select the reference branch based on the current context:
If the workflow is running on development in Repo A, it should checkout/reference development in Repo B.
If the workflow is running on main in Repo A, it should checkout/reference main in Repo B.