The Greenock-born star told fans on Twitter that he had not been able to show the clip sooner because it might have given away a plot point for the second episode of the latest series.
“With an ep 2 epaulettes spoiler out the way,” he tweeted, “I can reveal what happens when your in the middle of raiding bent coppers but Scotland are in a penalty shoot out to end 20 year of heartache (sic).”
Scotland made it through to their first major tournament since the 1998 World Cup with a victory over Serbia in November last year - while Line of Duty series six was still being filmed.
The 36-year-old added: “Steve to Scots in point zero seconds.”
In the video, he can be seen sitting in one of the production’s police cars while asking the crew - in his character’s English accent - to wait while he watched the shootout.
But as soon as Scotland won 5-4 on penalties, Compton’s Scottish accent re-emerges.
"Yes! Come on! Come on Scotland! Yes! Come On!" he can be heard shouting, - before beeping the car’s horn and hugging his co-star in the passenger seat.
He added the hashtag “#yessirwecanboogie” to his tweet, in a knod to a viral video of the Scotland squad’s celebration while dancing to Bacarra’s 1977 hit, ‘Yes Sir, I can Boogie”.