Add support for remote branches in staging.yaml