York continued their stellar form in the run up to the play-offs despite their faint title hopes finally being put out.
City needed a monumental swing for Barnet to give away top spot and, with the Bees duly confirming promotion, York beat Solihull Moors 2-0.
It was a seventh game unbeaten, with their aggregate score over that period 23-6.
Cameron John got them on their way here, scoring three minutes in when he poked in from close range after a ball in from Malachi Fagan-Walcott.
And Dipo Akinyemi confirmed the win a minute from time slotting in to leave City on course for 96 points for the season if they win their final game next weekend.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.