Constrain legacy CI to main and legacy branches (#18847)
Constrain legacy CI to main and legacy branches (#18847)

This should hopefully also prevent the legacy CI from triggering when
changes to eng/config.json are made.
Azure/azure-sdk-for-go,Azure/azure-sdk-for-go,Azure/azure-sdk-for-go,Azure/azure-sdk-for-go