Allow only comparing branches of interest in WorkflowTests. This is a cleaned-up version from !62692 (merged).
/cc @bdong @jmaurer @wlampl @nstyles @jcatmore