It's perfectly idiomatic. "Say" is the bare infinitive. What you're going to do is this: etc.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Mister Micawber...what you're gonna do.... is say you're sorry....