York City and Rochdale will face off on the final day of the National League season to decide who wins the fifth-tier title and earns promotion to League Two.