Lowland League champions Spartans booked their place in the League Two play-off final after defeating their Highland League counterparts Brechin 4-3 on penalties following a dramatic second leg at Glebe Park.
The Edinburgh side led 1-0 from the first leg, but City levelled things up on aggregate by beating their visitors 3-2 in the return match on Saturday.
Spartans twice opened up a two-goal cushion in the tie when Bradley Whyte and Blair Henderson scored either side of Fraser Macleod’s goal for Brechin.
But goals from Kieran Inglis and Botti Biabi for the hosts shortly after the hour mark were enough to take the contest to penalties, with no extra-time played.
Brechin missed their fourth and fifth kicks of the shoot-out, paving the way for Spartans to face League Two’s bottom side Albion Rovers in the final over the next two Saturdays.
Needing a win, Bonnyrigg Rovers to lose and an extremely unlikely-looking swing in goal difference to avoid 10th place, Albion won their match 2-0, with Joe Bevan and Charlie Reilly scoring in the second half.
Bonnyrigg, meanwhile, saw off Elgin 3-0 at New Dundas Park via a Kieran McGachie brace and a late Ross Gray effort, leapfrogging their opponents into eighth place as they sealed their safety.