This is not easy to do depending on which distro is being updated. The worst is updating the distro leg used in PR validation (currently the lowest centos version). This leg/artifacts are referenced across several places in the code base. At a minimum using a shared variables template would help solve the majority of references. There are some outliers, for example the prep script references the default rid to retrieve the artifacts for.
Example illustrating the places that need updating - dotnet/installer#19119